How can I change the speech recognition to “speak to activate” instead of “push to talk”?

Choose in the .project-file the item „TCP Device microphone“, which represents the connection to your microphone. After right click on it, you can choose „add child“->„mode“ and then „Speech Recognizer Mode“. Change the property Mode of the new item to SpeakToActivate.

You can change the recognition mode dynamically at runtime. In this case, you have to add a new transition. Add a “(OnTrigger)Send” and after that add a “Update Device Mode”. Change the property Device to the device you want to change (microphone e.g.). Now add a “Speech Recognizer Mode” and change the property Mode to the mode you want. After this transition is fired, the mode of the device will be changed.

Note: The ptt parameter in the XML config for Audio Manager should be set to 1 in either case.

Category: Speech / Audio
Tags:

← How can I change the speech recognition to “speak to activate” instead of “push to talk”?