rany2 / edge-srt-to-speech

Convert SubRip to speech using Microsoft Edge's TTS service
https://pypi.org/project/edge-srt-to-speech/
GNU General Public License v3.0
43 stars 10 forks source link

When the subtitle line is empty, the program will get stuck and unable to run. #13

Closed bassyeung closed 11 months ago

bassyeung commented 1 year ago

I am testing with automatically generated subtitle files, but sometimes there are empty lines in the subtitles, for example:

253
00:23:46,280 --> 00:23:50,280
If I just plug this in here, you can see there's probably the opposite way around.

254
00:23:51,280 --> 00:23:51,280

255
00:23:51,280 --> 00:23:55,280
It is. But that doesn't matter. We can just change these values around here.

When the program synthesizes speech, it gets stuck and doesn't continue running.

rany2 commented 11 months ago

Fixed in 0.0.21