Hello Charlotte !
Thank you for posting on Microsoft Learn.
You can change voice using Speech SDK, in your code (Python, C#, JavaScript), specify the voice like this and you need to replace "en-US-AriaNeural" with the name of the voice you want.
import azure.cognitiveservices.speech as speechsdk
speech_config = speechsdk.SpeechConfig(
subscription="YOUR_SUBSCRIPTION_KEY", region="YOUR_REGION"
)
speech_config.speech_synthesis_voice_name = "en-US-AriaNeural" # Change voice here
synthesizer = speechsdk.SpeechSynthesizer(speech_config=speech_config)
synthesizer.speak_text_async("Hello, this is a new voice.").get()
You can see the full list of voices: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support#text-to-speech
Or, in the <voice> tag of your SSML, specify the desired voice:
<speak version='1.0' xml:lang='en-US'>
<voice name='en-US-JennyNeural'>This is Jenny's voice.</voice>
</speak>
and send this SSML in a POST request to the TTS endpoint:
https://<region>.tts.speech.microsoft.com/cognitiveservices/v1
If you are seeking for a low code solution, you can use Speech Studio where you choose the Text to Speech feature, select your desired voice (Jenny, Davis....) and enter your text then click play or download to preview.