Cancel a text-to-speech message
Cancel a queued text-to-speech message.
読み終わるまでの所要時間 1 分最終更新 8ヶ月前
To cancel a currently playing or enqueued text-to-speech (TTS) message, use with the utterance ID of the message that you want to cancel. For example:
vx_tts_cancel_utterancevx_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);
In 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.
- 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);