Rate this page:

IVRPrompt

IVR menu prompt settings. Note that it's possible to specify play parameter or a pair of the say and lang parameters. Add the following line to your scenario code to use the interface:

require(Modules.IVR);

Props

lang

Copy URL
lang: 

string

TTS language for pronouncing a value of the say parameter. Lists of all supported languages: VoiceList.Amazon, VoiceList.Google, VoiceList.IBM, VoiceList.Microsoft, VoiceList.Tinkoff, VoiceList.Yandex, and VoiceList.Default.

play

Copy URL
play: 

string

Voice message url to play. Supported formats are mp3 and ogg.

say

Copy URL
say: 

string

Voice message to say. Use it together with the lang parameter. SSML is supported; to use it, specify ttsOptions before creating an IVRState instance:
IVR.ttsOptions = { "pitch": "low", "rate": "slow", "volume": "loud" }