Downloaded files from Polly are cut off/incomplete

0

Hi, I have been using Polly to generate some small mp3 files. Most of them are working fine, but there are a few that I am having difficulties with and I don't understand why. When I listen to the audio in the Console, it sounds fine; however, when I download the file, the last few words are cut off. The files where this problem occurs are small. For example, one has only 651 characters. The output is approximately 26 seconds, and then cuts off in mid-word, when there are only two or three words left.

I have tried saving this to S3 instead of downloading, but the result was the same.

Can anyone help me understand the cause of this, and how to fix it?

Thanks!

  • would you be able to provide region, voice, engine and an example text that is affected (if it can be shared publicly)? Did you try to use AWS SDK to perform the synthesis? If so, did you see the issue happening for the SDK as well?

    You can also report issues with Console through Feedback feature of AWS Console

已提问 1 年前309 查看次数
1 回答
1
已接受的回答

Hallo, I've been using Polly for a few years and I've often had this issue. I don't know the technical reason, but you can switch to the SSML side of the console, type the sentence you want to download, and add the tag <break time="1s"/> at the end of the sentence, before the closing tag </speak>. This allows you to download the full sentence, at least it has always worked for me. Example:

<speak> your short line. <break time="1s"/></speak>

LBajard
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则