Voice commands assistant in node
Shirka is a nodejs voice command assistant based in pocketsphinx, living in a RaspberryPi3. Nodered ties all up.
The Ears
Shirka_ears listens for voice commands through the microphone, and publishes them in a mosquitto queue. It’s based in pocketsphinx, a “a lightweight speech recognition engine, specifically tuned for handheld and mobile devices, though it works equally well on the desktop “, in their own saying.
The Voice
Shirka_voice is a listener to another mosquitto queue that receives the messages, creates a WAF file using pico2wave text-to-speech engine, and reproduces them with omxplayer.
Nodered
Nodered is used to decide what to do with the commands received from Shirka_ears and what to publish for Shirka_voice to ‘read’ outloud.
Talk is cheap
Here’s the code.