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

feita há um ano309 visualizações
1 Resposta
1
Resposta aceita

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
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas