

StyleĮxpresses an excited and high-energy tone for promoting a product or service.Įxpresses a warm and affectionate tone, with higher pitch and vocal energy. The following table has descriptions of each supported style. This SSML snippet illustrates how the element is used to change the speaking style to cheerful. You can also optimize the voice for different scenarios like customer service, newscast, and voice assistant.įor a list of supported styles per neural voice, see supported voice styles and roles. You use the mstts:express-as element to express emotions like cheerfulness, empathy, and calm. Role adjustments are supported for these Chinese (Mandarin, Simplified) neural voices: zh-CN-XiaomoNeural, zh-CN-XiaoxuanNeural, zh-CN-YunxiNeural, and zh-CN-YunyeNeural. The voice acts as a different age and gender, but the voice name isn't changed. Speaking style degree adjustments are supported for Chinese (Mandarin, Simplified) neural voices. If you don't set the style attribute, the styledegree attribute is ignored.

A value of 2 results in a doubling of the default style intensity. The minimum unit is 0.01, which results in a slight tendency for the target style. The default value is 1, which means the predefined style intensity. Specifies the intensity of the speaking style. If an invalid value is provided, this element is ignored. If you're using mstts:express-as, the style must be provided. Required if adjusting the speaking style for a neural voice.
DEFINE SPEEK CODE
Or the value can contain the language code and uppercase country/region, for example, en-US. The value can contain a lowercase, two-letter language code, for example, en. Specifies the language of the root document. Indicates the version of the SSML specification used to interpret the document markup. The speak element contains important information, such as version, language, and the markup vocabulary definition. SSML might not recognize attribute values that aren't in double quotation marks.

For example, is a well-formed, valid element, but is not. Standards for well-formed, valid XML requires attribute values to be enclosed in double quotation marks.

Don't forget to use double quotation marks around attribute values.
