What languages can the <Say> verb speak?
Currently, the <Say> verb is able to properly pronounce words from several languages. For example:
<?xml version="1.0" encoding="UTF-8" ?> <Response> <Say language="es">Hola mono.</Say> </Response>
When you set the “voice” attribute in the <Say> verb to “man” or “woman”, the following languages are supported:
- English with an American accent (en)
- English with a British accent (en-gb)
- Spanish (es)
- French (fr)
- German (de)
- Italian (it)
Setting the “voice” attribute to our multi-lingual engine “alice” gives you access to 26 dialects supported with improved text-to-speech engine. For the complete list of languages “alice” supports, check out here. To give an example, the following TwiML says “Hello” twice in Brazilian Portuguese:
<?xml version="1.0" encoding="UTF-8" ?> <Response> <Say voice="alice" language="pt-BR" loop="2">Bom dia.</Say> </Response>
If no language is specified in <Say>, the default language is English with an American accent (en).