change ai voice

Charlotte Flint 0 Reputation points
2025-07-23T14:15:03.7566667+00:00

how we can change ai voice -audiomodify?

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 35,766 Reputation points Volunteer Moderator
    2025-08-07T19:10:26.0633333+00:00

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.