Skip to content

Instantly share code, notes, and snippets.

@carsonmcdonald
Created September 22, 2015 21:41
Show Gist options
  • Save carsonmcdonald/4151ba9b5d5ba8e983b8 to your computer and use it in GitHub Desktop.
Save carsonmcdonald/4151ba9b5d5ba8e983b8 to your computer and use it in GitHub Desktop.
AVS curl example
{"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"}}
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"
@jonathanpdiaz
Copy link

Thanks @carsonmcdonald, I owe you a beer.

@arunnku
Copy link

arunnku commented May 6, 2016

Works. Thanks!

@johnfraize
Copy link

Thank you Jonathan

@jpsmith1981
Copy link

@carsonmcdonald I have been banging my head against wall for days... Thank you so much for this.

@JacksonLv
Copy link

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