question

seechay avatar image
seechay asked

Sending JSON responses directly to your Amazon Echo to vocalize speech

Hey guys! So, an idea I had was to utilize my Echo as part of my home security system. I've been able to create an API for my lambda function and post my JSON request to it successfully, but I haven't been able to figure out how to make the Echo actually speak the response. Instead of a getting a message when response.tell("Hello World"); is called, I'm just given this JSON response with no audio. { "version": "1.0", "response": { "outputSpeech": { "type": "PlainText", "text": "Hello World" }, "reprompt": null, "shouldEndSession": true }, "sessionAttributes": {} } Is there any way that I can make the Echo speak without initiating a verbal request?
alexa skills kitdebugging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

jjaquinta avatar image
jjaquinta answered
You can certainly call your endpoint, and it will respond to the person who called it. That's not going to make your Echo say anything. The only way you can do that is to call your endpoint, and record your message. The next time you connect to it with your echo, you will hear what it has to say. There is no way to get Echo to speak without being spoken to. It's the #1 requested feature. You can go and +1 it in the feature request thread. I don't think it will ever happen. The forum has heard my opinion on this often enough, so I won't repeat it here. :-) You can read it on the thread if you are interested.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.