User Started Speaking
User Started Speaking notifies the client that the user has begun speaking.
Voice Agent
What is the
Receiving
Built withWhat is the UserStartedSpeaking
Message
The userStartedSpeaking
message confirms when a user begins to speak.
Receiving UserStartedSpeaking
The server will send a UserStartedSpeaking
message every time the user begins a new utterance. If the client is playing agent audio when this message is received, it should stop playback immediately and discard all of its buffered agent audio.
JSON
Conclusion
The UserStartedSpeaking
message notifies the server that the user has begun speaking, prompting the client to stop any ongoing agent audio playback and discard any buffered audio, ensuring that the user’s input is prioritized and processed immediately.