Queue a text-to-speech message
Inject a text-to-speech message into Vivox channels.
Read time 1 minuteLast updated 2 days ago
Some destinations offer a built-in queuing system. When a new message is injected and there is an ongoing message playing, then the new message is put into a queue. After the ongoing message finishes playing, the next message in the queue automatically begins playing.
A queue is shared between// Returns VxErrorSuccess and starts playing immediately.MyLoginSession->TTS().Speak("First Message.", TTSDestination::QueuedLocalPlayback);// Returns VxStatusTTSInputTextWasEnqueued and put in a queue.// After the first message finishes playback, this message will start.MyLoginSession->TTS().Speak("Second Message.", TTSDestination::QueuedLocalPlayback);
TTSDestination::QueuedRemoteTransmissionTTSDestination::QueuedRemoteTransmissionWithLocalPlaybackTTSDestination::QueuedLocalPlaybackVxErrorTTSDestinationQueueIsFull