Image for post
Image for post
Photo by Will Wilson on Unsplash

How To Program The IBM Voice Agent With Watson

Demystifying The Process Of Creating A Virtual Voice Agent

Introduction

Image for post
Image for post
Service Orchestration To Constitute The Voice Agent.
An Introduction To Programming The IBM Voice Gateway

Change The Text To Speech Voice In-Call

{
"output": {
"text": {
"values": [
"Hi this is Mike! How can I help?"
],
"selection_policy": "sequential"
}
},
"context": {
"vgwTTSConfigSettings": {
"config": {
"voice": "en-US_MichaelVoice"
}
}
}
}
Image for post
Image for post
JSON Portion within the Dialog Node To Change the TTS Voice
{
"output": {
"text": {
"values": [
"This is Kate, and I am the Great Britain voice, How can I help? "
],
"selection_policy": "sequential"
}
},
"context": {
"vgwTTSConfigSettings": {
"config": {
"voice": "en-GB_KateVoice"
}
}
}
}

Change The Assistant Language In-Call

{
"output": {
"text": {
"values": [
"Willkommen bei dieser IBM Watson-Demonstration. Was möchtest du mich fragen?"
],
"selection_policy": "sequential"
}
},
"context": {
"vgwTTSConfigSettings": {
"config": {
"voice": "de-DE_BirgitVoice"
}
}
}
}
Image for post
Image for post
Watson Assistant View Of Dialog Node
{
"output": {
"text": {
"values": [
"Adesso posso interpretare l'italiano. Cosa vorresti provare dopo?"
],
"selection_policy": "sequential"
}
},
"context": {
"vgwTTSConfigSettings": {
"config": {
"voice": "it-IT_FrancescaVoice"
}
}
}
}
Image for post
Image for post

Handling Voice Agent Response Timeouts

Image for post
Image for post
Setting vgwPostResponseTimeout as Intent
Image for post
Image for post
Dialog Node Where an Assistant Response Is Defined

Ending A Call From The Agent Side

{
"output": {
"vgwAction": {
"command": "vgwActHangup"
},
"generic": [
{
"response_type": "text",
"values": [],
"selection_policy": "sequential"
}
]
}
}
Image for post
Image for post
Adding JSON To terminate The Call

Conclusion

Basic Overview

Written by

NLP/NLU, Chatbots, Voice, Conversational UI/UX, CX Designer, Developer, Ubiquitous User Interfaces. www.cobusgreyling.me