How do I change Multilingual Jenny's language in python?

John Garrison 5 Reputation points
2023-05-26T05:11:36.25+00:00

I've ran into the 53,435th issue where the documentation doesn't help me. This is becoming frustratingly common. I want to use Multilingual Jenny to speak various languages. I'm using Python to generate the audio. No matter what I set the language to, she speaks in English. I've tried changing just the language and changing her language. Neither of these work. How do I make her speak a different language? According to the documentation, the first one should work. Changing the synthesis language is supposed to change the output language. But it doesn't. However, there's no specific documentation on multilingual Jenny, because of course there isn't.

language = "ko-KR"
voice = "en-US-JennyMultilingualNeural"
speech_config.speech_synthesis_voice_name = voice  # Set the desired voice name
speech_config.speech_synthesis_language = language  # Set the desired language code

language = "ko-KR"
voice = "ko-KR-JennyMultilingualNeural"
speech_config.speech_synthesis_voice_name = voice # Set the desired voice name
speech_config.speech_synthesis_language = language # Set the desired language code
Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
{count} votes

Your answer

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