question

newuser-fff33f78-efb9-402a-9781-75afb00a1bd4 avatar image

Alexa Audio File SSML Error

I am an Alexa skill newbie and would appreciate help from the community. I am trying to figure why I keep getting "Error retrieving text to speech: The audio file cannot be longer than 240 seconds" but the audio file in question is less than 240 seconds - actually 119 secs.

This is the code I am testing in the Alexa simulator :

<speak>

Alexa will now play this track.

<audio src="https://ucbprelivefiles.s3-eu-west-1.amazonaws.com/s3fs-public/uk_21042020.mp3"/>;

</speak>

alexahelpaudiossml
10 |5000

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

1 Answer

Sareh avatar image
Sareh Suspended answered

recently i have same problem And Recieve "Error retrieving text to speech: The audio file cannot be longer than 240 seconds"

10 |5000

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