Realtime AI Voice Coach is the ReactJS web application that can stream microphone audio from the browser to a NodeJS server and transmit the DeepSpeech results back to the browser.
To launch to Realtime AI Voice Coach to your local machine, you need to do set up the following
In our github repository, you can either download the zip file or open with GitHub Desktop.
2. Download the following pre-trained models through Mozilla DeepSpeech:
- deepspeech-0.9.3-models.pbmm
- deepspeech-0.9.3-models.scorer
Download the correct version of node.js
Search Terminal(Mac) / Command Prompt(Windows), copy the following prompt line by line and hit enter to install
npm install
Install yarn. Depends on your environment, you might need to try the following arguments until it can successfully download
npm install -g yarn
sudo npm install -g yarn
npm install --global yarn
The following is the example if your VoiceCoachReact file on you local machine is in Downloads
cd Downloads/VoiceCoachReact
On one of the terminal / command prompt, run ReactJS Client to start the website:
yarn start
On another terminal / command prompt, Run NodeJS Server to activate the server to interact with the client website:
node server.js
- server: server.js in VoiceCoachReact
- The UI(User Interface) with html, css, JavaScript in VoiceCoachReact/src
- .pbmm and .scorer are the DeepSpeech pre-trained model