Virtual Robot icon Virtual Robot — Display robot image with real-time servo position readouts and basic servo management including servo deletion Try it →
Asked
Resolved Resolved by Dave Schulpius!
How do I make Bing speech recognition not trigger from spoken chatGPT response?

How Do I Make Bing Speech Recognition Not Trigger From Spoken Chatgpt Response?

Is there a variable or method to know when servos have stopped moving? I make my C3PO head talk with the ChatGPT response and using SayEZB and Talk servo 2. Sometimes BingSpeech Recognition hears the wake word again - or at least it thinks it does.  So, once I am waiting for C3PO to complete his speech response from ChatGPT, can I pause bing speech recognition? I have tried to do this in the Chat GPT script, but it is not working.   Here is my script:

$Response = getVar("$OpenAIResponse"); Digital.set(d0, 1, 0); Digital.set(d1, 1, 0); controlCommand("Bing Speech Recognition", "PauseListening"); Audio.sayEZB($Response); sleep(1000); controlCommand("Bing Speech Recognition", "UnpauseListening");

This does not work because it does not know when EZB is done "speaking" to "UnpauseListening".   Also, I have no idea how long ChatGPT will respond- so I can't just use a sleep command.   Is there a way I could sense the servos have stopped moving?  Any ideas?



Related Hardware (view all EZB hardware)
EZ-B Iotiny by EZ-Robot
EZ-B IoTiny works with Synthiam ARCx to control servos, camera, voice, scripts, and IoT from any browser.
Wi-Fi
Servos 8
Camera
Audio
UART None (transmit-only serial on digital ports)
I2C
ADC 2
Digital 8

Related Robot Skill (view all robot skills)
Accurate Bing cloud speech-to-text for ARC: wake-word, programmable control, $BingSpeech output, Windows language support, headset compatible

ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

Author Avatar
PRO
Canada
Twitter
#9  

I think it would be good if VAD on off was set via a variable.  So if I say "Robot" now I have woken the robot up and set VAD = 1 so he listens to me.  Now I can have a chit chat back and forth and if I say Robot Sleep I can set VAD = 0  so he needs wake word again.  I saw in the latest IOS update Siri does something similar.

Author Avatar
PRO
Canada
Twitter
#10  

Yes does that work, I guess I should have read the manual:)

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#11  

Oh wait... haha there's already a ControlCommand for that. It's the pause listening and unpause listening. The commands only show up in the cheatsheet if VAD is enabled because they don't matter otherwise.

User-inserted image

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#12  

From the bing speech recognition manual...

User-inserted image

Author Avatar
PRO
Canada
Twitter
#13  

Nice, so I just add the Phrase "Robot Wake" and "Robot Sleep" and the ControlCommand in the config and he will no longer listens to me, Cool.