Create Google Speech Engine
Verb: googleEngine
Creates a speech engine using Google Cloud's "Speech to Text" and "Text to Speech" speech recognition and synthesis service from a specified language and voice.
Syntax
googleEngine --culture(Culture) --voice(String) (SpeechEngine)=value
Inputs
| Script | Designer | Required | AcceptedTypes | Description |
|---|---|---|---|---|
| --culture | Culture | Required | Culture | Language used:
|
| --voice | Voice | Required | Text | Speech patterns for recognition and synthesis in the chosen language:
Vocalization must be compatible with the language selected in Culture. |
Outputs
| Script | Designer | AcceptedTypes | Description |
|---|---|---|---|
| value | Speech engine | Speech Engine | Returns the speech engine with the specified language and speech synthesis. |
Example
An interaction with the IVR begins, and a female voice synthesis is applied to the speech to communicate with the user.
defVar --name engineSpeaksEN --type SpeechEngine
defVar --name languageEN --type Language
defVar --name answerRecognized --type String
defVar --name phraseInserted --type String
// Definition of the speech engine.
googleEngine --culture en-US --voice "en-US-Standard-C" engineSpeaksEN=value
createLanguage --culture en-US --speech ${engineSpeaksEN} languageEN=value
botConnect --type "Ivr" --language ${languageEN} --autoanswer --timeout 00:01:00
botAsk --beep --language ${languageEN} --text "Welcome to IBM Robotic Process Automation. How can I help you?" --timeout 00:01:00 answerRecognized=value phraseInserted=utterance
logMessage --message "Phrase Said: ${phraseInserted}\rAnswer Recognized: ${answerRecognized}" --type "Info"
botDisconnect
1. Output values vary depending on the interaction with the bot.