encoding audio for broadest echo compatibilty via the audioplayer api? /

Published at 2018-11-02 15:23:35

Home / Categories / Audio / encoding audio for broadest echo compatibilty via the audioplayer api?
I've been building a skill that plays a lot of audio files via the AudioPlayer API from an S3 bucket.
I've encoded these files to M4A/AAC u
sing ffmpeg. Most play back fine,but I'm have strange problems with the two longest ones. Long tale short, they don't seem to play back on first-generation devices, or throwing the following error and failing silently on the devices.{ "message": "GStreamer encountered a general stream error.","type": "MEDIA_ERROR_INTERNAL_DEVICE_ERROR" }
S
ome googling propose could be a MIME header issue. I've ensured that their `Content-Type` is set to `audio/m4a` in their S3 metadata.
Note that this only
happens on first-gen devices. All other Echoes play the files fine, as expected.
The files are h
ere:https://irfs-the-unfortunates.s3.amazonaws.com/audio/extras/advance-guard.m4ahttps://irfs-the-unfortunates.s3.amazonaws.com/audio/extras/making_of_mixed.m4aI've tried re-encoding the files at various samplerate and bitrates. I've also tried re-encoding the files as MP3, or which works on the first-gen devices but fails on the present.
I've been following the guidance at the following links:https://developer.amazon.com/docs/custom-skills/audioplayer-interface-reference.htmlhttps://developer.amazon.com/docs/alexa-voice-service/recommended-media-support.html#audio-codecsDoes anyone have (or can link me to) definitive specs for which formats play on which devices,and what encoding settings I can use to encode files that AudioPlayer will definitely play on every Echo?

I've been going round in circles somewhat trying to encode files that'll play everywhere!

Source: amazon.com

Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0