Book Image

Voice User Interface Projects

By : Henry Lee
Book Image

Voice User Interface Projects

By: Henry Lee

Overview of this book

From touchscreen and mouse-click, we are moving to voice- and conversation-based user interfaces. By adopting Voice User Interfaces (VUIs), you can create a more compelling and engaging experience for your users. Voice User Interface Projects teaches you how to develop voice-enabled applications for desktop, mobile, and Internet of Things (IoT) devices. This book explains in detail VUI and its importance, basic design principles of VUI, fundamentals of conversation, and the different voice-enabled applications available in the market. You will learn how to build your first voice-enabled application by utilizing DialogFlow and Alexa’s natural language processing (NLP) platform. Once you are comfortable with building voice-enabled applications, you will understand how to dynamically process and respond to the questions by using NodeJS server deployed to the cloud. You will then move on to securing NodeJS RESTful API for DialogFlow and Alexa webhooks, creating unit tests and building voice-enabled podcasts for cars. Last but not the least you will discover advanced topics such as handling sessions, creating custom intents, and extending built-in intents in order to build conversational VUIs that will help engage the users. By the end of the book, you will have grasped a thorough knowledge of how to design and develop interactive VUIs.
Table of Contents (12 chapters)

About dialog interfaces

In this section, you will improve the previous chapter's Cooking application by adding Alexa's dialog features. Notice that the GetCookingIntent you created in previous chapter contains DietTypes and Foods slots. If the user does not provide all the required fields, you will not be able to complete the search query for finding dishes. In order to make sure the user gives you all the required information, you will be using Dialog.Directive. There are four dialog directives:

  • Dialog.Delegate: Alexa automatically handles conversations, which helps gather the information required for the intents based on the dialog model created in the skill builder. The slots and intents can have prompts to ask the user for the required information, then the utterances will be defined in the slots and the intents to match the user's responses to the specific...