CodeLabs
  • Introduction
  • Cities
    • Cover
    • Summary
    • Introduction
      • Getting Started
      • Resources
      • Naming Convention
    • Caracol
      • Architecture
        • Intel
        • Operating Systems
        • Hardware Platform
        • Field Requirements
        • Software Development
        • Video Conference Station
          • Applications
          • Entertainment System
            • Services
              • Graphics
              • Video
              • Camera
              • Text To Speech
              • Speech To Text
              • Photography
              • Gaming
                • Super Nintendo Emulators
                • Super Nintendo ROMs
              • Twitter
              • Keyboard
              • Google Drive
              • WiFi
            • Modules
            • Tbd
        • Functionality
        • Bill Of Materials
        • Open Questions
        • Future
    • Chacmultun
      • JHD1313M1
        • Background
          • Inter-Integrated Circuit
          • Linux I2C Subsystem
        • Device Drivers
          • User Space Library UPM
          • User Space Library MRAA
          • User Space I2C Library
          • Kernel Space I2C Driver
    • Chicanna
      • OpenCV
        • Face Recognition
        • Web Streaming
    • Chichen Itza
      • Audio
        • Advanced Linux Sound Architecture
        • PortAudio
        • PyAudio
          • Record
          • Play
      • Text To Speech
        • eSpeak
          • pyttsx
        • VoiceRss
          • VoiceRss Text To Speech Python SDK
      • Speech To Text
        • CMU Sphinx
          • Sphinx Knowledge Base Tool
          • PocketSphinx
          • PyAudio
        • SpeechRecognition
    • Coba
      • Linux Kernel Source Code
        • Git Source Code Management
      • Linux Kernel Development Process
        • A Guide To The Linux Kernel Development Process
        • Challenge
      • Linux Kernel Compilation
      • Linux Kernel Modules
      • Linux Kernel Build System
        • Compilation Kernel Object
        • Compilation Built-In
      • Linux Kernel Patch
        • Patchset
      • Linux Kernel Developer
      • Learn More
    • Dos Pilas
    • Dzibilchaltun
    • Edzna
      • MQ Telemetry Transport
        • MQTT Broker
      • Home Assistant
        • Setup
        • Default Configuration
        • Hello
      • Home Automation
        • Device
          • Light ESP8266
          • Intel Edison
        • Server
          • MQTT
            • Light
            • Sensor
            • Binary Sensor
            • Alarm
          • Dweet
          • Weather
          • Binary Sensor
          • Telegram
          • Camera
          • Automation
      • Shack Automation
        • Configuration Yaml
    • Ek Balam
      • Google Cloud Platform
        • Google API Keys
        • Google Application Default Credentials
      • Google Cloud Translation API
      • Google Cloud Vision API
      • Google Cloud Speech
    • Hochob
      • Introduction
      • Accounts
      • Areas
        • Naming Conventions
      • Digital Media Players
        • Chromecast
      • Keypads
      • Mobile Device
      • Amikoo
        • Architecture
          • Hardware Components
            • Intel® Edison Breakout Board
        • Amikoo
          • Setup
          • Git Repositories
          • Audio
          • Main Intel Edison
          • Main x86
        • Sandbox
          • Tbd
      • Server
        • Setup
          • Root
          • PulseAudio
        • Architecture
        • Media
        • Services
          • Automation
            • Home Assistant
              • Setup
          • Calendar
          • Camera
          • Communications
          • Games
            • Loteria Mexicana
            • Caras Y Gestos
            • Sopa De Letras
          • Image
          • Institution
          • Keypad
          • Messaging
          • Motion
          • Robot
          • Sound
            • Play
            • Speech Synthetizer
          • Stream
          • Usb
          • Survey
        • Applications
          • Captain Maya Lands
          • Southern Maya Highlands
          • Amikoo Maya Lands
          • Central Maya Lowlands
          • Northern Maya Lowlands
          • Console Maya Lands
          • Media Maya Lands
          • Calendar Maya Lands
          • Tradition Maya Lands
          • Techie Maya Lands
          • NohochTata Maya Lands
      • Stations
      • Architecture
      • Release Notes
        • v0.1
        • v0.2
    • Hormiguero
    • Kaminaljuyu
      • WRI Workshop
        • Environmental Protection Agency
      • Arquitecture
        • Bill Of Materials
      • Intel
    • Kanki
      • Device
      • Gateway
    • Kinich KaK Moo
    • Kohunlich
    • La Ruta Puuc
    • Mayapan
    • Mixco Viejo
    • Muyil
    • Palenque
    • Qumarkaj
      • Amazon
      • Amazon Echo
        • Lifx
        • IFTTT
      • Amazon Alexa
        • Alexa Skills Kit
          • Training: Developing Alexa Skills - Hello, Alexa!
          • Training: Alexa - A Free Introduction
          • Projects
            • Intel GDC Visitor Center
              • Cloudy
              • Geek
              • Trivia
              • Kit
            • Voice Control Intel Edison
        • Alexa Voice Service
          • Intel Edison
    • Seibal
    • Tabasqueno
    • Tikal
      • Mexican Red Cross
      • Emergency Medical Services
        • Prehospital Care Strategies
      • Intel
      • Bitalino
      • My Signals
      • Architecture
        • Objectives
    • Tulum
      • Introduction
      • Device
        • Development Board
        • Telegram Bot
        • Bootup
        • Text Editors
        • Setup
        • Main
        • IoT101 Inc
        • Mqtt Clients
        • Sensors
      • Server
        • Setup
        • Dashboard
        • Mqtt Broker
      • Challenge
    • Uxmal
    • Xcambo
    • Xpuhil
    • Xunantunich
    • Sandbox
      • Text To Speech
      • Face Recognition Web Streaming
      • Web Server Flask
      • Speech To Text
      • Image Webpage Flask
      • Audio Capture Playback
      • Image Capture OpenCV
    • Tbd
      • Tbd
      • Linux Kernel Architecture
      • Linux Kernel Device Drivers
      • Tbd
  • Gods
    • Acat
      • Node-RED
        • Installation
          • General
          • Base
          • Npm Packages
          • Node-RED Packages
        • Autostart
      • Projects
        • GPIO
        • MQTT
        • Intel GDC Visitor Center
      • Sandbox
    • Ah Puch
      • Recon Instruments
        • ReconJet
          • Get Started
        • ReconEngage
        • Uplink
        • Intel Developer Zone
          • Recon Dev Kit for Jet™
      • Bicycles
    • Akna
      • Hardware
        • Intel Edison
        • Sphero
        • Bluetooth Dongle
      • Software
        • Javascript
        • Cylon.js
          • Cylon.js Intel Edison
          • Cylon.js Intel Edison Sphero
            • Examples
        • Sphero Linux API
    • Alom
    • Bacab
      • Getting Started
        • Inventory
        • Accounts
        • Software
      • Proof Of Concepts
        • Doorbell
    • Bitol
      • Drone Software Development Environment
        • PX4
        • JMAVSim
        • Ardupilot
        • SITL Simulator
        • DroneKit
        • QGroundControl
        • MAVLink
        • OpenCV
        • Git Source Code Management
      • Drone Solution Architect
        • Companies
      • Dronecode Project
      • Base Drone Solution
        • Flight Controller Hardware
          • PixHawk
          • Intel® Aero Ready to Fly Drone
          • Emlid
          • Erle Brain
        • Flight Controller Operating System
        • Autopilot
          • Px4
            • Architecture
              • NuttX
              • DriverFramework
            • Shell
          • Ardupilot
          • Software In The Loop
            • jMAVSim
            • DroneKit SITL
        • Communications
          • Mavlink
            • PyMAVLink
        • Ground Control Station
          • QGroundControl
        • Developer APIs
      • Hybrid Drone Solution
      • Autonomous Drone Solution
      • Drone Solutions
        • Erle Robotics
        • Emlid
      • Training
        • Drone Solution Architect
          • Demos
            • Ka’an
            • Múuyal
            • lik’
            • Chak iik’
    • Chaac
    • Bolon Ts'akab
    • Buluc Chabtan
      • Challenge
    • Chaac Uayab Xoc
    • Cacoch
      • Background
        • Open Source
        • Do It Yourself Communities
      • The Project
        • History
        • Career Profile
        • Education Strategy
        • Courses
        • Infrastructure
Powered by GitBook
On this page
  • Alexa Skills Kit
  • Hello, Alexa!
  • Skill
  • Intel Guadalajara Facts
  1. Cities
  2. Qumarkaj
  3. Amazon Alexa

Alexa Skills Kit

PreviousAmazon AlexaNextTraining: Developing Alexa Skills - Hello, Alexa!

Last updated 7 years ago

Alexa Skills Kit

Alexa, the voice service that powers Amazon Echo, provides capabilities, or skills, that enable customers to interact with devices in a more intuitive way using voice. Examples of Alexa skills include the ability to play music, answer general questions, set an alarm or timer, and more.

The Alexa Skills Kit is a collection of self-service APIs, tools, documentation and code samples that make it fast and easy for you to add skills to Alexa. You can also use the Smart Home Skill API, a new addition to the Alexa Skills Kit, to easily teach Alexa how to control your cloud-controlled lighting and thermostat devices. All of the code runs in the cloud and nothing is on any user device.

Amazon Alexa

The Alexa Skills Kit SDK for Node.js helps you get a skill up and running quickly, letting you focus on skill logic instead of boilerplate code.

Hello, Alexa!

  • Devices

    • Amazon Echo

    • Amazon Dot

    • Amazon Tap

    • Fire TV

Alexa provides capabilities or skills to interact with devices in intuitive way using voice

Skill

The interaction between the Skill Service and the Skill Interface yield the working Skill

User: Ask Greeter to say Hello Alexa: Hello

Skill Service

Service Container (HTTP Server/AWS Labda)

First component to ceate a Skill, it is the business logic for the skill Lives in the Cloud Host code that will write and receives JSON payloads from Alexa: Index.js Determines what actions to take in response to user speech Skill Service Layer manages:

Http requests User accounts Information Processing Sessions Database Access Can be enable in any language that is supported in HTTPS server and return JSON responses Can be implemented in any HTTPS server but additional SSL configuration (assign certificates) Implementation in Node.js running in AWS Labda means no additional configuration

Alexa: Hello

Handlers Types: Event

A Skill Service implement Event Handlers Event Handlers defines how a Skill will behave when the user triggers the event by speaking to an Alexa enabled device

They are defined on the Skills Service to handle particular events like OnLaunch Event

Will be sent to the Greeter Skills Service when the Skill is first launch by the user

Basic Greeter Skill

GreeterService.prototype.eventHandlers.onLaunch = helloAlexaResponseFunction;
var helloAlexaResponseFunction = function(intent, session, response) {
    response.tell(SPEECH_OUT);
};

User will trigger our Basic Greeter Skill by saying

Alexa: Open Greeter Alexa: Start Greeter

Handlers Types: Intent

Type of event that is an indication of soemthing the user would like to do Map the number of features or interactions that a skill offers A Skill Service can have many Intent Handlers each reacting to different Intents trigger that different spoken utterances we specify

Basic Greeter Skill

One type of Intent: Hello, TheHelloWorldIntent

var helloAlexaResponseFunction = function(intent, session, response){
    response.tell(SPEECH_OUT);
};

GreeterService.prototype.intentHandlers = {
    "HelloAlexaIntent":helloAlexaResponseFunction
};

Skill Interface Configuration

Voice User Interface Configuration, develop via Amazon Alexa Skills Developer Portal

Second component to ceate a Skill where we specify Utterences

It is composed of:

Utterences Slot Types Intent Schema Responsible for processing user spoken words It handles the translation between Audio from the User to Events The Skills Service can handle It's since the Events the Skills Service so the Events Handlers can do their work Skills Interface is also where we specify what a Skill is called so User can invoke it by name when talking to an Alexa enabled device, its name users will address our Skill with, this is called the Skills Invocation Name Invocation Name: Greeter From Amazon Alexa Webpage: Invocation Name: The name users will say to interact with this skill. this does not have the same name as the skill name. The invocation name must comply with the Invocation Name Guidelines. Within the Skill Interface we define the Skills Interaction Model

Interaction Model

Interaction Model is what train the Skill Interface so it knows how to listen for User spoken words

  • It resolves the spoken words to specific intent events

  • You define the words that shoulp map to a particular intent name in the interaction model by providing a list of sample utterances

    • helloWorldIntent say hi world

    • helloWorldIntent say hello

    • helloWorldIntent say hello world

    • helloWorldIntent hello

    • helloWorldIntent say hi

    • helloWorldIntent how are you

Sample Utterance

It is a string that represents a possible way the user may talk to the skill Utterances are use to generate a natural laguage understanding model that resolves the users voice to our Skills Intents

Intents Schema

We also declare a Intent Schema on the Interaction Model The Intent Schema tells the Skill Interface what Intents the Skill Service implements

From Amazon Alexa Webpage: Intent Schema. The schema of user intents in JSON format. For more information, see Intent Schema. Also see built-in slots and built-in intents.

{
  "intents": [
    {
      "intent": "HelloWorldIntent"
    }
  ]
}

Once we provide the Sample Utterances (Alexa ask Greeter to say Hello), the Skill Interface can resolve the User Spoken Words

Intel Guadalajara Facts

root@edison:~# npm install --save alexa-sdk

Homepage
Github
Github
Developing Alexa Skills - Hello, Alexa!
Step-by-Step Guide to Build a Fact-Based Alexa Skill
Step-by-Step Guide to Build a Trivia Alexa Skill