DeepSpeech-examples/electron
Alexandre Lissy 621f69674e Rename DeepSpeech to Mozilla Voice STT 2020-08-10 17:16:40 +02:00
..
public Rename DeepSpeech to Mozilla Voice STT 2020-08-10 17:16:40 +02:00
src Rename DeepSpeech to Mozilla Voice STT 2020-08-10 17:16:40 +02:00
.gitignore Merge pull request #69 from lissyx/pr-electron-example 2020-08-04 21:25:42 +02:00
Readme.md Rename DeepSpeech to Mozilla Voice STT 2020-08-10 17:16:40 +02:00
package-lock.json Rename DeepSpeech to Mozilla Voice STT 2020-08-10 17:16:40 +02:00
package.json Rename DeepSpeech to Mozilla Voice STT 2020-08-10 17:16:40 +02:00
test.sh Merge pull request #69 from lissyx/pr-electron-example 2020-08-04 21:25:42 +02:00

Readme.md

Mozilla Voice STT Electron example

This is an example of Mozilla Voice STT running in an Electron app with a ReactJS front-end and processing .wav files.

Install

Install NPM modules:

npm install
npm run rebuild

Download and extract audio files to /public directory

wget https://github.com/mozilla/DeepSpeech/releases/download/v0.7.0/audio-0.7.0.tar.gz
tar xfvz audio-0.7.0.tar.gz -C ./public/

(Optional) Download or softlink DeepSpeech 0.8.0 model files to the root of the project:

mkdir models
cd models
wget https://github.com/mozilla/DeepSpeech/releases/download/v0.8.0/deepspeech-0.8.0-models.pbmm
wget https://github.com/mozilla/DeepSpeech/releases/download/v0.8.0/deepspeech-0.8.0-models.scorer
cd ..

If the files do not exist, they will be downloaded.

Run

Run development version (Mac/Linux):

npm run dev

Run development version (Windows):

export BROWSER=none
npm run dev-win

Package

Build distributable package (Mac/Linux):

npm run dist

Build distributable package (Windows installer):

export BROWSER=none
npm run dist-win

Test the (dmg/appimage/exe) package file that has been generated in /dist.

Uninstall

The model files download to the following directories and must be deleted manually

  • MacOSX: ~/Library/Application\ Support/mozilla_voice_stt-electron
  • Linux: ~/.config/mozilla_voice_stt-electron
  • Windows: ~/AppData/Roaming/mozilla_voice_stt-electron