Configuring custom conversion string for Microsoft Azure TTS

From MiRTA PBX documentation
Revision as of 09:56, 7 April 2020 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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>