Inject a text-to-speech message
Inject a text-to-speech message into Vivox channels.
Read time 1 minuteLast updated 20 hours ago
To inject a text-to-speech (TTS) message into channel or local audio, use
vx_tts_speakvx_tts_utterance_id utteranceId;vx_tts_speak(managerId, voiceId, "Example message, this is great!", tts_dest_queued_local_playback, &utteranceId);
vx_tts_speak- The TTS manager identifier that is generated at TTS initialization.
- The ID of the voice to be used when synthesizing the speech.
- The message to be converted into speech.
- The destination.
-
An out parameter that contains the utterance identifier. You can use the utterance identifier later, for example, to cancel TTS messages.