ThioJoe / Auto-Synced-Translated-Dubs

Automatically translates the text of a video based on a subtitle file, and also uses AI voice to dub the video, and synced using the subtitle's timings
GNU General Public License v3.0
1.55k stars 152 forks source link

Azure gets empty audios when add_line_buffer_milliseconds is different than 0 and batch_tts_synthesize is False #15

Closed sofiadparamo closed 1 year ago

sofiadparamo commented 1 year ago

Azure returns empty audio files (0 bytes) when using the option add_line_buffer_milliseconds with a value different than 0, and using batch_tts_synthesize=True under config.ini.

The reason is a typo inside the code with an error in the ssml, causing a parsing error on Azure API and therefore, returning invalid mp3 files.

sofiadparamo commented 1 year ago

I'm preparing a PR for this.