google text to speech - Why only the second sentence is being slowed down? - Stack Overflow

I'm using google cloud text-to-speech, using srt files as an input, I convert the srt to ssml with

I'm using google cloud text-to-speech, using srt files as an input, I convert the srt to ssml with timestamps plus I'm trying to adjust the speech rate to match the same time as in the srt file.

I ran into a problem that I have no idea on how to figure out why. I successfully managed to change the audio length to match the original, but the speech rate won't change - at least right now - on the example the only one that changes is the second line that gets slowed down.

Does anyone know why is that happening?

<speak>
    <s><break time="8000ms"/><prosody rate="47.5%">This is the first subtitle.</prosody><break time="1000ms"/></s>
    <s><break time="1000ms"/><prosody rate="34%">Here comes the second line.</prosody><break time="1000ms"/></s>
    <s><break time="1000ms"/><prosody rate="39.5%">Now the third segment appears.</prosody><break time="1000ms"/></s>
    <s><break time="1000ms"/><prosody rate="35.5%">And this is the fourth one.</prosody><break time="1000ms"/></s>
</speak>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743766875a4503636.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信