- 
                Notifications
    
You must be signed in to change notification settings  - Fork 539
 
How to call multiple voice in SSML
Customer may want to use multiple voices in one SSML to deliver some interesting experiences like role play story telling. Azure TTS support combing multiple voices with SSML.
To use multiple standard voices, one should have SSML composed to refer to the voices to be used.
 <speak version="1.0" xmlns="https://www.w3.org/2001/10/synthesis" xml:lang="en-US"> <voice name="en-US-AriaNeural"> This is the text that is spoken. </voice> <voice name="en-US-GuyNeural"> This is the text that is spoken. </voice> </speak>
then everything is the same like SSML with single voice.
For customer voice, currently the custom endpoint needs to have the custom voice deployment id. Refer to: https://docs.microsoft.com/bs-latn-ba/azure/cognitive-services/speech-service/regions#custom-voices
To access multiple custom voice in the SSML like above, the endpoint also needs to have multiple deployment IDs.
If there are too many voices to put into the URL, it is recommended to have some code to construct the URL dynamically based on the SSML content.
- Azure TTS: Empower every person and every organization on the planet to have a delightful digital voice!
 - Azure Custom Voice: Build your one-of-a-kind Custom Voice and close to human Neural TTS in cloud and edge!