This is the newtool. Workflow is as follows:
Setup-
- Make sure you are setup to use Login with Amazon
- Put the .wav file you'd like to test on a publicly visible share somewhere
- Add the newtool code (see samples below) to your skill's existing Lambda function
How it works-
- You call our rest service, providing an auth header and three parameters (see samples below)
- We pass your .wav file off to AVS as an audio request (while your initial request waits on our response)
- The audio request (hopefully) is routed to your skill's lambda as an alexa speech request
- This triggers our SNS call (step 3 in setup)
- Your skill continues running
- Meanwhile, the SNS call works its way back to our REST service
- Our REST service matches the data from step 4.2 to the initial request in step 1, and returns
Samples
Code to add to Node.js Lambda
Sample Request