This is a NodeJS example of recording from the microphone and streaming to STT with voice activity detection.
-
The example utilized the mic NPM module which requires either sox (Windows/Mac) or arecord (Linux).
-
Download the pre-trained STT english model (1089MB):
wget https://github.com/coqui-ai/STT/releases/download/v0.9.3/coqui-stt-0.9.3-models.pbmm
wget https://github.com/coqui-ai/STT/releases/download/v0.9.3/coqui-stt-0.9.3-models.scorer
Is needed the library libasound2-dev
$ sudo apt-get install libasound2-dev
npm install
node start.js
Use the DEEPSPEECH_MODEL
environment variable to change models.
DEEPSPEECH_MODEL=~/dev/jaxcore/coqui-stt-0.9.3-models/ node start.js