Configuring custom conversion string for Microsoft Azure TTS

From MiRTA PBX documentation
Jump to navigation Jump to search

Microsoft Azure TTS allows customizing the Text to Speech conversion, adjusting several parameters.

You need to use the following variables:

%%LANG%%

%%SEX%%

%%SHORTLANG%%

For example

<speak version='1.0' xml:lang='%%LANG%%'><voice xml:lang='%%LANG%%' xml:gender='%%SEX%%' name='%%SHORTLANG%%'>%%VOICETEXT%%</voice></speak>