Skip to content

dfblue/deepspeech-electron

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS EXAMPLE HAS BEEN SUBMITTED TO THE DEEPSPEECH PROJECT

mozilla/DeepSpeech-examples#65

DeepSpeech Electron example

This is an example of DeepSpeech 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.7.4 model files to the root of the project:

wget https://github.com/mozilla/DeepSpeech/releases/download/v0.7.4/deepspeech-0.7.4-models.pbmm
wget https://github.com/mozilla/DeepSpeech/releases/download/v0.7.4/deepspeech-0.7.4-models.scorer

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.

About

DeepSpeech running in electron with electron-builder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 78.1%
  • HTML 21.9%