How To Use Amazon Skill Set Without Amazon Echo Device

前端 未结 5 2008
陌清茗
陌清茗 2021-01-31 12:06

I am trying to integrate amazon skill kit in my website without an amazon echo unit. I want to implement voice commands on my website using the laptop/PC microphone instead of a

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-31 12:41

    Yes. You can certainly create and test skills without the actual device. Below are the steps I used to get it working. Note that I have not attempted to get it working on a website but I suppose it is possible by adapting the method used for the java client.

    Step 1: Emulate the device. Use the "Alexa Voice Service" sample code, which behaves exactly like the device. Follow the steps on this page: https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/docs/reference-implementation-guide. I used the java client to simulate the Alexa device and skipped the steps for the Android and iOS devices.

    When you launch the java client it behaves just like an Alexa device.

    Step 2: Create your Skill. The easiest way to get started is to launch the sample lambda function, as per https://developer.amazon.com/appsandservices/solutions/alexa/alexa-skills-kit/docs/developing-an-alexa-skill-as-a-lambda-function.

    Now when I launch the java client it can access the skill that I published to Lambda. I can edit the skill in lambda and hear the updates without even needing to re-launch the java client.

    It would be great if someone has an example of this running over the web, rather than on the java client.

提交回复
热议问题