Created
September 22, 2015 21:41
-
-
Save carsonmcdonald/4151ba9b5d5ba8e983b8 to your computer and use it in GitHub Desktop.
AVS curl example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"messageHeader":{"deviceContext":[{"name":"playbackState", "namespace":"AudioPlayer", "payload":{"streamId":"", "offsetInMilliseconds":"0", "playerActivity":"IDLE"}}]}, "messageBody":{"profile":"doppler-scone", "locale":"en-us", "format":"audio/L16; rate=16000; channels=1"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AT="Atza|IQXXXXXXX" | |
curl -i --trace-ascii z.out \ | |
-o test1.mp3 \ | |
-H "Authorization: Bearer ${AT}" \ | |
-F "metadata=<test.json;type=application/json; charset=UTF-8" \ | |
-F "audio=<test.wav;type=audio/L16; rate=16000; channels=1" \ | |
"https://access-alexa-na.amazon.com/v1/avs/speechrecognizer/recognize" |
Works. Thanks!
Thank you Jonathan
@carsonmcdonald I have been banging my head against wall for days... Thank you so much for this.
good job! have you tested version v20160207 ?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks @carsonmcdonald, I owe you a beer.