Hi,
When I send a Recognize event like example 1 https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/docs/avs-http2-requests,
I always get the 500 response code and the message is {"header":{"namespace":"System","name":"Exception","messageId":"d33d8627-9014-4331-9f64-5cd2f3e9bc9d"},"payload":{"code":"INTERNAL_SERVICE_EXCEPTION","description":"Error reading entity from input stream."}}.
Is it related to the audio file I send to the AVS?
Here is the infomation about the audio file.
weather.m4a File Size (Bytes): 12,826
[Format] Format (Short Name): mov,mp4,m4a,3gp,3g2,mj2 Format (Long Name): QuickTime/MPEG-4/Motion JPEG 2000 format Duration: 00:00:04.41 Duration (Microseconds) 4,415,938 Bit Rate (bits/sec): 23,235 Number of Streams: 1
[Metadata] major_brand: M4A minor_version: 512 compatible_brands: isomiso2 encoder: Lavf55.19.100
[Stream #0] Type: Audio Codec (Short Name): aac Codec (Long Name): Advanced Audio Coding Codec Tag: 0x6134706d Codec Tag (String): mp4a Codec Time Base: 0/1 Time Base: 1/16000 Real Base Frame Rate: 0/0 Average Frame Rate: 0/0 Duration: 00:00:00.41 Duration (Microseconds) 70,655 Bit Rate (bits/sec): 21,369 Number of Frames: 69
Channels: 1 Sample Rate (Hz): 16,000 Bit Rate: 16 bits (Integer)
[Metadata] language: eng
And also if there is a sample code about how to record the exact format audio file in android would help a lot.