Skip to content

Latest commit

 

History

History
executable file
·
50 lines (41 loc) · 4.23 KB

File metadata and controls

executable file
·
50 lines (41 loc) · 4.23 KB

Build An Alexa Quiz Game Skill

Voice User InterfaceLambda FunctionConnect VUI to CodeTestingCustomizationPublication

What You Will Learn

What You Will Need

  • You can use the following command to check your Java version:
java -version
  • The following command will display your Maven version:
mvn --version

What Your Skill Will Do

We all hold interesting data in our heads. Maybe it's a list of all the action figures we played with as a kid, specific details about the 50 states, or a historical list of the starting quarterbacks for our favorite football team. When we're with friends, sometimes we'll even quiz each other on these nuanced categories of information. It's a fun, interactive way to share our knowledge and learn more about our favorite topics.

You can now bring that experience to Alexa using our new quiz skill template. You provide the data and the number of properties in that data, and Alexa will dynamically build a quiz game for you. In the quiz, Alexa will ask questions like:

  • "What is the capital of Vermont?"
  • "How many career home runs did Mickey Mantle hit?"
  • "What year was Harry Potter and the Sorcerer's Stone first published?"

You get to provide the data, as well as the number of properties in that data, and Alexa will dynamically build a quiz game for you. In the quiz, Alexa will ask questions like:

  • "Alexa, ask United States Quiz about Ohio."
  • "Alexa, ask Hockey Quiz about Wayne Gretzky."
  • "Alexa, ask Video Game Quiz about River City Ransom."

We've also included speechcons feature for Alexa skill development. Speechcons are special words and phrases that Alexa pronounces more expressively. We use them in this quiz game to let the user know whether they gave a correct or incorrect answer during the quiz. Different speechcons are available in each region, so make sure you use the correct ones.