ドキュメント

サポート

Vivox Core SDK

Vivox Core SDK

Inject a text-to-speech message

Inject a text-to-speech message into Vivox channels.
読み終わるまでの所要時間 1 分最終更新 23日前

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…”