/English-Alphabet

An Alexa Presentation Language (APL) skill for children.

Primary LanguageJavaScript

English-Alphabet

An Alexa Presentation Language (APL) skill for children.

Prerequisites

Note: The AWS Account is optional because you can create this sample as an Alexa Hosted skill. The Echo Show is optional because you can see the display in the simulator.

Brief Steps

Note: The below steps assume you have general familiarity with how to use the Alexa Developer Console. If you've never created a skill before, check out the fact skill tutorial to get the feel for it.

  1. From the Alexa Developer Console create a new skill.
    1. Name the skill whatever you want !
    2. Choose the language model you want to use, as long as as it is English (IN) which corresponds to en-IN.
    3. Choose the Custom interaction model.
    4. Choose Alexa-Hosted (Node.js).
  2. Choose Sauce Boss Skill template to add to your skill.
  3. It may take a minute, but when your skill is ready, go to the JSON Editor section and replace all the contents with the interaction model from here that matches the locale you chose in the previous step. Click Save Model.
  4. Save that change and build your model.
  5. Click on the Code tab and update the following files with the contents from this repo:
  6. Add the following files in folder named lambda with noted content:
    • alphabet.js from the file alphabet.js (Alphabet Name & instructions - all locales)
    • alphabetUtils.js from the file alphabetUtils.js (Utilities to manage alphabet)
    • aplUtils.js from the file aplUtils.js (Utilities for APL Support: Directives - Commands - Datasources)
    • index.js from the file index.js (Pro tip: click the Raw button to make it easier to copy)
    • languageStrings.js from the file languageStrings.js (Voice & Display prompts - all locales)
    • package.json from the file package.json
    • util.js from the file util.js
  7. Create a folder named apl (for APL Templates).
  8. In the apl folder, create these files with the noted content:
  9. Save and Deploy the function
  10. Click on the Test tab, enable the skill and check it out. Phrases you can try include:
    • open english alphabet (or whatever invocation name you used)

ask-cli Steps

  1. Clone my repository.

    $ git clone https://github.com/smanitech/English-Alphabet
  2. From the Alexa Developer Console create a new skill.

    1. Name the skill whatever you want !
    2. Choose the language model you want to use, as long as as it is English (IN) which corresponds to en-IN.
    3. Choose the Custom interaction model.
    4. Choose Alexa-Hosted (Node.js).
  3. Choose Sauce Boss Skill template to add to your skill.

  4. It may take a minute, but when your skill is ready, open terminal inside a folder where you want to clone your APL template.

    1. Initialize the ASK CLI by navigating into the repository ask init. Follow the prompts.

      $ ask init
      $ ask clone

    then select you skill using arrow keys and hit enter


    1. Delete folder named lambda & folder named models & Copy folder named lambda & folder named models from my repo. then, Follow the Below Commands.

      $ cd English_Alphabet
      $ git add .
      $ git commit -m "updated"
      $ ask deploy

    Example:


    1. Click on the Test tab, enable the skill and check it out. Phrases you can try include:

      • open english alphabet (or whatever invocation name you used)