There's always someone listening! Voice-controlled devices like Amazon Alexa and Google Assistant are everywhere, and the apps that control them are getting more powerful. Whether you're jamming to Spotify, Googling facts, chatting with friends, or reordering supplies from Amazon, great voice apps change how you interact with the web. Voice Applications for Alexa and Google Assistant teaches you how to design, build, and share voice apps.
"The book has absolutely priceless details about making Voice UI and chat UI."
~ Tiklu Ganguly
"Clearly explains the differences between VUI and other types of UI, and lays out the foundations for creating your own voice apps."
~ James Matlock
"This book is a great introduction to Alexa development with step by step examples for Skill development. If you are looking to get started with creating skills for Alexa, this is the book for you."
~ Michael Jensen
Part 1: Voice User Interface
1. Introduction to Voice First
1.1. What is Voice-First?
1.2. Designing for Voice UIs
1.3. Anatomy of a Voice Command
1.4. Waking the Voice-First Device
1.5. Introducing Natural Language Processing
1.5.1. How Speech Becomes Text
1.5.2. Intents are the Functions of a Skill
1.5.3. Training the NLU with Sample Utterances
1.5.4. Plucking Pertinent Information from Spoken Text
1.5.5. The Code That Ties it All Together
1.5.6. Telling Alexa What to Say
2. Building a Call and Response Skill
2.1. Building an Alexa Skill
2.1.1. The Skill Fulfillment
2.3. Sample Utterances
2.5. Building a Skill: The Interaction Model
2.5.1. Building the Intent Schema
2.5.2. Coding the Fulfillment
2.6. Creating the Fulfillment on AWS Lambda
3. Designing a Voice User Interface
3.1. Basic principles of VUI design
3.2. Determining Voice Capabilities
3.3. Planning Your VUI
3.3.1. What the User Says
3.3.2. What the Computer Says
3.4. Building Your VUI Persona
4. Making a Conversational Skill
Part 2: Coding for Voice-First Platforms
5. Leveraging Conversation Best Practices
6. Extending our Skill
7. Directing Conversation Flow
8. Testing and Publishing
9. Using the Alexa Gadget API
10. Build Your Own Alexa in the Browser
Part 3: Coding for Google Assistant
11. Building an Action for Google Assistant
About the TechnologyVoice assistants have taken off, with "voice-first" devices like the Amazon Echo and Google Home found in millions of homes. Voice-enabled devices, and the apps that control them, are an exciting new field for UI designers and web developer. To create your own voice "skills," you'll need to learn some new device toolkits, the basics of Voice UI design, and a some emerging best practices for building and deploying on these diverse platforms.
About the bookVoice Applications for Alexa and Google Assistant is your guide to the exciting world of designing, building, and implementing voice-based applications for Amazon Alexa or Google Assistant! Inside, you'll learn how to build your own "skills"—the voice app term for actions the device can perform—from scratch. After an overview of Voice UIs and how they work, you'll build a voice-powered sleep tracker to monitor sleeping patterns. Every chapter introduces a new topic as you learn to build a call and response Skill so your app knows when you talk to it, store the information in a database so your app can track and monitor the sleep patterns, and enable account linking so you can retrieve historical data. Building on the basics, you'll dig deeper as you master the art of building a multi-use conversational flow and even learn how to automatically display cards with stats of the previous night.
Along with the running example, this carefully-crafted tutorial includes smaller projects you can take on to practice your new techniques. You'll also discover a trove of best practices and tips that will streamline the app development process.
- Designing a voice interaction model
- Fulfilling skills via a serverless platform like AWS Lambda
- Connecting a skill to a database
- Building a skill which can connect to a user account
- Handling errors, disambiguation, and conversations in a voice skill