How to test the amazon alexa custom skill through your computer while in development phase?
Asked Answered
G

6

13

I am trying to use the sample code provided for Amazon Alexa API, and trying to run hello world / history buff examples through the computer. How do I test from my local machine, about the request and response formats. In the README file it is given to visit this website : http://echo.amazon.com/#skills, but I could see nothing there as it mentions more about connecting to the device. I dont have the device, but I would like to test things locally through my laptop.

Groff answered 4/5, 2016 at 5:32 Comment(3)
I am actually planning to use this service in some other application, not through the amazon echo device.Groff
You could define your own skill following this developer.amazon.com/public/solutions/alexa/alexa-skills-kit/… and then debug with the console there. I am not sure, if every thing is possible without an Alexa device, I would guess though. edit: this could help a lot: developer.amazon.com/public/community/post/TxDJWS16KUPVKO/…Southwestward
@choli: thanks a lot. But looking more into the dev pages, it says we could use alexa skill set for manufacturers but, and it talks about the login through website or app. I want to integrate this with an app or a website, say just some webpage that makes a (predefined as specified in skill set) conversation with you. Would like to know I can achieve this.Groff
B
7

Yes, the Test tab in the Alexa Developer Console allows you to interact completely with your skill during development.

You will type in your utterances instead of speaking them, but from a program logic perspective, there is no difference.

The Test page also provides a place to type in your skill's reponses, to see what they'll actually sound like. I recommend that you do so if you don't have an actual device. Sometimes adding or removing a comment can help make the responses easier to understand, or sound more natural.

Boiling answered 7/5, 2016 at 12:17 Comment(3)
thanks a lot. But looking more into the dev pages, it says is useful for alexa skill set for manufacturers, and it talks about the login through website or app. I want to integrate this with an app or a website, say just some webpage that makes a (predefined as specified in skill set) conversation with youGroff
You can try using the Alexa App but that is only for the US as of now. Just download the app and login with the same account in which you developed your alexa skill set. Use "Alexa Ask <your invocation name> <utterances>"Boarish
The test tab doesn't let you interact completely, it says "Note: Service Simulator does not currently support testing audio player directives, dialog model, customer permissions and customer account linking. Text mode does not support launch intents and single interaction phrases."Laval
H
9

We have a tool that we built specifically for this purpose: https://bespoken.tools/blog/2016/08/24/introducing-bst-proxy-for-alexa-skill-development

Requests and responses from Alexa will be sent directly to your development laptop, so that you can quickly code and debug without having to do any deployments. We have found this to be very useful for our own development.

Our Github project is here: https://github.com/bespoken/bst

We are also adding other useful commands for Alexa development.

Heredia answered 12/9, 2016 at 17:33 Comment(0)
B
7

Yes, the Test tab in the Alexa Developer Console allows you to interact completely with your skill during development.

You will type in your utterances instead of speaking them, but from a program logic perspective, there is no difference.

The Test page also provides a place to type in your skill's reponses, to see what they'll actually sound like. I recommend that you do so if you don't have an actual device. Sometimes adding or removing a comment can help make the responses easier to understand, or sound more natural.

Boiling answered 7/5, 2016 at 12:17 Comment(3)
thanks a lot. But looking more into the dev pages, it says is useful for alexa skill set for manufacturers, and it talks about the login through website or app. I want to integrate this with an app or a website, say just some webpage that makes a (predefined as specified in skill set) conversation with youGroff
You can try using the Alexa App but that is only for the US as of now. Just download the app and login with the same account in which you developed your alexa skill set. Use "Alexa Ask <your invocation name> <utterances>"Boarish
The test tab doesn't let you interact completely, it says "Note: Service Simulator does not currently support testing audio player directives, dialog model, customer permissions and customer account linking. Text mode does not support launch intents and single interaction phrases."Laval
C
6

Use http://ngrok.com

See my video for a tutorial:

https://youtu.be/eC2zi4WIFX0?t=108

Chromatics answered 1/6, 2016 at 19:40 Comment(0)
C
2

I'm guessing the key point in OP's question is "dont have the device".

There is a web simulator at https://echosim.io

It behaves just like any other Alexa 'device'. Login with your Amazon account and it picks up all your selected skills, etc. Shows up as just another device in the Alexa app.

Only downsides: You have to click to talk, and it's pretty slow, presumably because it has to receive, buffer, convert and re-ship the audio.

Also, I'm not sure how you register/connect to the Alexa service in the first place without an Echo/Dot device, but I assume there is a way.

UPDATE:

More recently, there are a number of free 3rd-party apps on Android and iOS devices to also simulate an Alexa/Echo device. It can be less klunky than the web site. Search for 'Alexa' in your App/Play store and try a few of them out. "Reverb" is one: https://itunes.apple.com/us/app/reverb-for-amazon-alexa/id1144695621

Good luck.

Clayclaybank answered 16/11, 2016 at 21:9 Comment(3)
were you able to register / connect Echoism to do dev test ?Howlyn
Yes, but the first time I registered was with a real Echo. Echosim pops an Amazon login, right? Just enter your Amazon/AWS dev/login credentials and I assume it might work. But I'm not sure, sorryClayclaybank
yes, it works. I tried it to test my skill in development. I never registered any echo device for this.Indecisive
C
0

I dont have the device, but I would like to test things locally through my laptop.

If you are developing the skill using an AWS Lambda function in Python, have a look at: https://pypi.python.org/pypi/FirstAlexaSkills/0.1.2

It can generate custom Alexa events based on your parameters (utterances, slot variables) and allows you to create test cases against your local code, as well as against AWS Lambda itself.

Claresta answered 30/6, 2017 at 22:12 Comment(0)
S
0

You can also test your skill locally by following this tutorial: How to test your Alexa skill locally

Samathasamau answered 11/3, 2018 at 4:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.