Queue a text-to-speech message
Queue a text-to-speech message for audio output.
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 starts to play.
A queue is shared between// Start playing speech as soon as it is synthesized.VivoxService.Instance.TextToSpeechSendMessage("1st Message.", TextToSpeechMessageType.QueuedLocalPlayback);// After the first message finishes playback, this message starts.VivoxService.Instance.TextToSpeechSendMessage("2nd Message.", TextToSpeechMessageType.QueuedLocalPlayback);
TextToSpeechMessageType.QueuedRemoteTransmissionTextToSpeechMessageType.QueuedRemoteTransmissionWithLocalPlaybackTextToSpeechMessageType.QueuedLocalPlaybackVxErrorTTSDestinationQueueIsFull