Text-to-speech voice options
Choose text-to-speech voices and options.
Read time 1 minuteLast updated 7 months ago
Before you inject a text-to-speech (TTS) message, you can choose the voice to use for synthesizing speech. Two voices are available: male and female.
To list all available voices, use , which is displayed in the following example:
vx_tts_get_voicesint numVoices;vx_tts_voice_t *voices;vx_tts_status status = vx_tts_get_voices(managerId, &numVoices, &voices);
vx_tts_voice_tvx_tts_get_voicesvx_tts_voice_tnumVoicesYou can choose a voice ID to save for global use, or you can allow a user to choose their own voice ID.