question

newuser-6c9d64eb-5fc5-422f-b313-3ecf61f81dbd avatar image

Get string request from AVS by sending a wav file

Hi,

i am just trying to find a python or c++ example or way, which is not out of date, on how to send an existing wav file over http2 in json formate to the AVS. Is there away to just get the request from AVS as String? I know all the ways how to get the authorization and how to use the sample app. I can't figure out, how write my own sample app.

How could I program all this? I'd really appreciate any help Thank you in advance

alexa skills kitalexa voice servicehelp
10 |5000 characters needed characters left characters exceeded

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

1 Answer

Pramod@Amazon avatar image
Pramod@Amazon answered

Not entirely sure what your query is. Directives (from Alexa to device/app) and Events (from device/app to Alexa) are sent/received as json. Are you asking how to convert a json to a String and a wav file to a json? If you are asking about how to send an existing audio file to Alexa, then you can refer to this: https://developer.amazon.com/docs/alexa-voice-service/speechrecognizer.html#recognize

10 |5000 characters needed characters left characters exceeded

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