Back to all posts
3 min read

How Does a Robot Know You're Talking to It?

At two trade fairs in Shanghai, visitors could set our robot off just by talking to each other. The robot listened continuously. A fragment of a nearby conversation would reach the command matcher, fail to match an action, and send the robot into question-and-answer mode. From a visitor's perspective, a machine had joined a conversation it hadn't been invited into.

Think of calling someone's name across a room. Their name tells them to listen, and the words immediately after it tell them what you want. People rarely put a clean pause between the two. That detail mattered when I changed our robot to take one command per wake word at Synthoid.ai.

Keeping the words after the wake word

A wake word is a short phrase the robot listens for while it's on standby. The tricky case is someone saying the name and the instruction in one breath. By the time the detector recognizes the name, part of the instruction may already have gone past the microphone. Starting a fresh recording at that instant can cut off the first word of the command.

I used a ring buffer, a short rolling window of recent audio. When the wake word is detected, those recent samples are still available. Voice activity detection identifies when someone is speaking, and an end-of-utterance check marks the end of the command. Whisper, our on-device speech recognizer, can then transcribe the captured turn. The visitor can speak naturally, and the command matcher gets one bounded turn to interpret.

Playback introduces the opposite problem. If the robot stops listening while it speaks, a visitor has to wait through an unwanted answer. I kept wake-word listening active during playback so a visitor could interrupt, cancel the speech, and give the next instruction. After the interaction, the robot returns to standby.

What can the robot act on?

Once a turn has been captured, similar wording can still express different intentions. Consider “turn around” and “I didn't ask you to turn around.” Both contain the same action. Executing a command on that phrase alone would get the second one wrong.

I combined exact matching with a local Qwen3.5-9B model for utterances that need interpretation, such as a correction or a quoted instruction. The model returns a structured decision. The execution side accepts actions from an agreed list, so the motion-control team and the voice team can reason about the same set of possible requests.

What the 96.7% measured

Quiz answers gave me a separate way to evaluate the system. I checked the grader's decision against evidence in the transcript. Adding vocabulary hints to the speech recognizer fixed some transcriptions but introduced errors elsewhere, so I chose targeted corrections. The grader reached 96.7% accuracy on new text examples. That test starts with text. It measures grading and leaves microphone pickup, missed wake words, and interruptions to be tested with audio.

If I were listening to a demo of this system, I'd ask three things. Can two visitors finish a conversation beside it? Can one person say the wake word and a command without pausing? And can they change their mind while the robot is still speaking? Each question exercises a different part of what feels, to a visitor, like one conversation.