We’re giving away 1,500 more DJI Tello drones. Enter to win ›
Get the code
View the demo
by Poornima Trikkur Anantharaman, Ramesh Poomalai | Updated September 17, 2018 - Published September 6, 2018
We all know that chatbots are AI’s answer to improved customer service and cost savings. Chatbots are available in many user interfaces and input forms, and previous code patterns have shown how to create chatbots using different mediums such as Slack, web interface, and Facebook Messenger. In this code pattern, we use a web interface again, but instead of using text input, we’ll use voice input and output. The code pattern uses Watson Assistant to control the conversation dialog, and Watson Speech to Text and Watson Text to Speech services to handle the speech recognition and playback.
We’ve created several code patterns that use various user input forms, like the Speech Sandbox code pattern that uses a VR headset as input, the Watson Assistant and Slack code pattern that uses text and a Slack interface, and the Facebook Messenger and Watson tutorial that uses text and Facebook. This code pattern demonstrates a web-based application that uses Watson Text to Speech, Watson Speech to Text, and Watson Assistant. We use voice input and audio output as well as a web browser as the interface.
The main website is built using jQuery, and the API calls are made using Python flask. A WebSocket connection is created to make the calls to the various Watson services, and a sample insurance conversation is used for the dialog.
When you have completed this code pattern you should understand how to:
See the README for detailed instructions. These steps explain how to:
May 6, 2019
May 27, 2019
May 16, 2019
Back to top