speech
Loading...
Searching...
No Matches
speechRecognition.py

Provides basic ASR capabilities.

First we must run a YARP name server if it is not running in our current namespace:

 [on terminal 1] yarp server

Now launch the program (use –help for a list of options):

 [on terminal 2] speechRecognition --backend vosk --model es-0.42

You can launch a 3rd terminal to read what is published via YARP port:

 [on terminal 3] yarp read ...  /speechRecognition/result:o

or you can send commands to configure the speech recognition app. To know how to do that, use "help":

 [on terminal 4] yarp rpc /speechRecognition/rpc:s
 [on terminal 4] >>help

For instance, you can load the 20k words Spanish dictionary for the PocketSphinx backend with:

 [on terminal 4] >>setDictionary 20k es