SSML Support and Constraints
mainMsEdgeTTS uses a specific SSML template to wrap user input. It does not support full SSML; it only supports the following element types:
speakvoiceprosody
The generated SSML structure is:
<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xmlns:mstts="https://www.w3.org/2001/mstts"
xml:lang="${this._voiceLang}">
<voice name="${voiceName}">
<prosody rate="${rate}" pitch="${pitch}" volume="${volume}">
${input}
</prosody>
</voice>
</speak>Warning: Because the underlying Read Aloud API requires a user agent matching Microsoft Edge, this library will not work in browsers other than Microsoft Edge. It remains fully functional in server-side runtimes.