Documentation

Support

Vivox Core SDK

Vivox Core SDK

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_speak
vx_tts_utterance_id utteranceId;vx_tts_speak(managerId, voiceId, "Example message, this is great!", tts_dest_queued_local_playback, &utteranceId);
vx_tts_speak
accepts the following parameters:
  • 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.
If multiple TTS users are in one voice or text channel, then you can prefix the display name of the user who is sending the TTS message. For example, “[Display name] says…”