Create Bing Speech Engine
Verb: bingEngine
Available from: <Standard>
Creates a speech engine to synthesize a voice in an IVR, using Azure Cognitive Services speech recognition and synthesizing service, based on a chosen language and type of voice (male or female).
Syntax
bingEngine --culture(Culture) --voice(String) (SpeechEngine)=value
Inputs
| Script | Designer | Required | AcceptedTypes | Description |
|---|---|---|---|---|
| --culture | Culture | Required | Culture | Language used:
|
| --voice | Voice | Required | Text | Voice options for recognition and synthesis in the chosen language:
The vocalization must be compatible with the language selected in Culture. |
Outputs
| Script | Designer | AcceptedTypes | Description |
|---|---|---|---|
| value | Speech Engine | Speech Engine | Variable with the specified language and speech synthesis. |
Example
The following example initiates an interaction with the IVR, using a male (English) speech synthesization for communication with the user.
defVar --name speechEngine --type SpeechEngine
defVar --name IVRLanguage --type Language
defVar --name statement --type String
defVar --name answer --type String
// Definition of the speech engine.
bingEngine --culture en-US --voice "Microsoft Server Speech Text to Speech Voice (en-US, BenjaminRUS)" speechEngine=value
createLanguage --culture en-US --speech ${speechEngine} IVRLanguage=value
botConnect --type "Ivr" --language ${IVRLanguage} --autoanswer --timeout 00:01:00
botAsk --beep --language ${IVRLanguage} --text "Welcome to IBM Robotic Process Automation. How can I help you?" --timeout 00:01:00 statement=utterance answer=value
botDisconnect
1. Output values vary depending on the interaction with the bot.