Cancel a text-to-speech message
Cancel a queued text-to-speech message.
Read time 1 minuteLast updated 20 hours ago
To cancel a currently playing or enqueued text-to-speech (TTS) message, use
vx_tts_cancel_utteranceIn destinations that contain queues, canceling an ongoing TTS message automatically triggers playback of the next message. Canceling an enqueued TTS message shifts all later messages up one place in the queue. You can cancel all TTS messages in a destination (ongoing and enqueued), or all TTS messages in all destinations.vx_tts_utterance_id firstUtteranceId;vx_tts_speak(managerId, voiceId, "Example message, this is great!", tts_dest_queued_local_playback, &utteranceId);vx_tts_cancel_utterance(managerId, utteranceId);
- Cancel all TTS messages in a destination: ,
vx_tts_cancel_all_in_dest(managerIdtts_dest_queued_local_playback); - Cancel all TTS messages in all destinations:
vx_tts_cancel_all(managerId);