When you set up a voice flow on Upwire, your template will default to English text-to-speech (TTS) using Amazon's TTS engine. You can change Amazon's English voices using the settings in the green settings module at the top of your template in the canvas. See How do I change the voice of the text-to-speech engine for more details.
If you require your call flow to support languages besides English, you have 3 options:
- use an API module to switch your TTS to Google's TTS engine;
- use an API module to select the non-English languages supported by Amazon's TTS engine; or
- upload pre-recorded WAV files.
Once changed, all of the modules that follow will use that TTS voice/language and your text in the TTS editors should be written in the relevant language.
1. Google TTS
A full list of voices and languages available on Google's TTS engine can be found here.
To switch to Google TTS engine:
- drag on an API module at the relevant point of your flow template;
- click on the API Endpoint icon on the API module
- set your endpoint URL to https://a.upwire.com/changeGlobalTTS and set to POST
- click on the API Request Bindings icon and complete the bindings as follows:
- bind static variable “[voice name]” to parameter “TtsVoice”
- bind static variable “[voice language]” to parameter “TtsLanguage”
- bind static variable “[voice gender]” to parameter “TtsGender”
- bind static variable “google” to parameter “engine”
2. Amazon TTS
A full list of voices and languages available on Amazon's TTS engine can be found here. Note: Your voice template will default to Amazon's English voices, and you can select one of those voices without the need to add an API module to your flow. See How do I change the voice of the text-to-speech engine for more details.
To switch to Amazon's non-English languages:
- drag on an API module at the relevant point of your flow template;
- click on the API Endpoint icon on the API module
- set your endpoint to https://a.upwire.com/changeGlobalTTS and set to POST
- click on the API Request Bindings icon and complete the bindings as follows:
- bind static variable “[voice name]” to parameter “TtsVoice”
- bind static variable “[voice language]” to parameter “TtsLanguage”
- bind static variable “[voice gender]” to parameter “TtsGender”
- bind static variable “amazon” to parameter “engine”
3. WAV file upload
All of our voice modules can be set up using TTS (default) or recorded WAV files. However, if you have variables to read out, those will default back to TTS. To change from TTS to WAV file:
- Click on the voice message icon on the relevant module.
- Set message type to WAV File.
- Select your wav file from the list or drag on a new file from your file location.
Note: You can either upload pre-recorded wav files, or record them directly onto out platform using the microphone on your computer (see How can I record new WAV files?)