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 a pre-trained model and scorer from the Coqui Model Zoo
Is needed the library libasound2-dev
$ sudo apt-get install libasound2-dev
npm install
node start.js
Use the STT_MODEL
environment variable to change models.
STT_MODEL=~/dev/jaxcore/coqui-stt-models/ node start.js