SRT-To-SSML icon indicating copy to clipboard operation
SRT-To-SSML copied to clipboard

SSML creates longer times and not in sync.

Open holanino opened this issue 7 months ago • 0 comments

Thank you for your work on this project. I have an SRT audio file and an SSML Audio file from Amazon Polly.

For some reason which I cannot figure out, the SSML audio files created by Amazon Polly are much longer and out of sync with original SRT timestamps.

Here is a view of the audio files in Resolve showing different timestamps and SSML being longer. I used the example 23 second SRT listed in this project.

1 00:00:00,140 --> 00:00:05,050 This is an example of a subtitle file with a bunch of random words I've added with various timestamps.

2 00:00:05,240 --> 00:00:13,290 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim

3 00:00:13,480 --> 00:00:14,250 veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

4 00:00:14,340 --> 00:00:19,930 Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla.

5 00:00:20,130 --> 00:00:23,419 Now some examples of some escaped characters such as & and ' and " and < and > just to name a few

<speak xmlns="http://www.w3.org/2001/10/synthesis" xmlns:mstts="http://www.w3.org/2001/mstts" xmlns:emo="http://www.w3.org/2009/10/emotionml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/10/synthesis http://www.w3.org/TR/speech-synthesis/synthesis.xsd" version="1.0" xml:lang="en-US"> This is an example of a subtitle file with a bunch of random words I've added with various timestamps. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla. Now some examples of some escaped characters such as & and ' and " and < and > just to name a few

Screenshot 2024-07-20 at 9 43 29 PM

holanino avatar Jul 21 '24 02:07 holanino