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
lang: string
TTS language for pronouncing a value of the say parameter. List of all supported voices: VoiceList.
play
play: string
Voice message url to play. Supported formats are mp3 and ogg.
say
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" }