Rate this page:

IVRPrompt

IVR menu prompt settings. Can be passed via the IVRSettings.prompt parameter. Note that it is possible to specify playing 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. List of all supported voices: VoiceList.

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" }