With Voice Relay, interruptions are enabled by default (enableInterruptions). When the caller speaks while the AI is talking, Sinch sends an interrupt message to your server, so your server should stop generating the rest of the reply. With Streams, you handle the audio yourself: when the caller speaks, send the clear command to discard audio that hasn't been played yet.
For more information, see:
- Call chatbots with Voice Relay (tutorial): enable Interruptions and the interrupt message
- Voice Stream reference: the clear command and audio buffering.
Comments
0 comments
Please sign in to leave a comment.