Queue a text-to-speech message
Inject a text-to-speech message into Vivox channels.
阅读时间1 分钟最后更新于 18 小时前
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