IVRPrompt
IVR menu prompt settings. Can be passed throw 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. Lists of all supported languages: VoiceList.Amazon, VoiceList.Google, VoiceList.IBM, VoiceList.Microsoft, VoiceList.Tinkoff, VoiceList.Yandex, and VoiceList.Default.
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" }