Last reviewed: 3/23/2024 10:53:16 AM

<lang>

The <lang xml:lang> element is primarily intended for Azure multilingual neural voices. You can adjust the speaking language for the Azure multilingual neural voice at the sentence level and word level.

By default, all Azure neural voices are fluent in their own language and English without using the <lang xml:lang> element.

The default language must be specified as en-US within the speak element, whether or not the language is adjusted elsewhere. In this example, the primary language for en-US-JennyMultilingualNeural is en-US.

<?xml version="1.0"?>
<speak version="1.0"
    xmlns="http://www.w3.org/2001/10/synthesis"
    xmlns:mstts="https://www.w3.org/2001/mstts"
    xml:lang="en-US">
    <voice name="en-US-JennyMultilingualNeural">
        <lang xml:lang="de-DE">
            Wir freuen uns auf die Zusammenarbeit mit Ihnen!
        </lang>
    </voice>
</speak>

Attributes

xml:lang

The language with which the neural voice is to speak.

Children

none

Parents

<speak> and <voice>.

Source: Microsoft Azure Speech Synthesis Markup Language (SSML)