Best practices for audio files?

Does anyone have any “best practices” type recommendations on audio file sizes? E.g., keep it to 1MB or less per file?

A skill of mine that was experiencing absolutely no crashing when there were short audio files and Alexa responses now crashes at erratic moments after longer audio clips have been loaded. They are below Amazon’s 240-second and 10MB per file limits, but my theory is that the larger files still are problematic.

Any advice on this?

1 Like

Where are you uploading/storing your audio files? Also, is this short audio (i.e. under 240 seconds, and part of the speak block feature)? Or long audio (i.e. using stream blocks)?

1 Like

HI Mark. I’m loading the audio files right into speak blocks. It is under 240 seconds. Since I posted, I have found more information about best practices for audio: https://www.betalkative.com/blog/mp3-files-alexa-skills-google-actions-ssml/

But I still notice more errors ( “this skill produced an unexpected response”) than I do when using the same Voiceflow structure and only text (Alexa-spoken) responses. If you have any other tips I’m all ears.

1 Like

I’m having the same issue for a mp3 one minute long with a 2.5 MB file size. Any guidance on how to troubleshoot this? Thanks.

In my case, I found that the problem wasn’t the length of the individual audio files. Instead, it was that skills are not allowed to have more than five consecutive audio files lined up to play in a row without a chance for user input.

If that possibility of 5 in a row exists in any of the possible paths forward, you may intermittently trigger that problem at a point earlier in the chain.

2 Likes

Your explanation is very clear, and this was my exact issue. Now it works. Thanks. I do see what they are getting at, ensuring a baseline of interactivity.

2 Likes

Thanks for helping out, James!

1 Like