VoiceDSP
Methods
addEventListener
Adds a handler for Agentic.VoiceDSPEvents. Use only functions as handlers; anything except a function leads to the error and scenario termination when a handler is called.
Parameters
close
Closes the VoiceDSP WebSocket connection.
id
Returns the VoiceDSP id.
removeEventListener
Removes a handler for the specified event.
Parameters
reset
Reset the VoiceDSP context (sends a Reset message to the connector).
signalAssistantTurnEnded
Signals that the assistant has finished speaking. Clears the assistant-speaking state used for Agentic.VoiceDSPEvents.TurnStarted interrupted and starts the Agentic.VoiceDSPParameters.userTurnIdleTimeout idle timer when no user turn is in progress (mirrors Pipecat BotStoppedSpeakingFrame).
signalAssistantTurnStarted
Signals that the assistant has started speaking. Marks the assistant as speaking for Agentic.VoiceDSPEvents.TurnStarted interrupted and cancels the Agentic.VoiceDSPParameters.userTurnIdleTimeout idle timer (mirrors Pipecat BotStartedSpeakingFrame).
stop
Stops the VoiceDSP (sends Stop to the connector, then closes the WebSocket).
webSocketId
Returns the VoiceDSP WebSocket id.