ThioJoe / Auto-Synced-Translated-Dubs

Automatically translates the text of a video based on a subtitle file, and then uses AI voice services to create a new dubbed & translated audio track where the speech is synced using the subtitle's timings.
GNU General Public License v3.0
1.56k stars 156 forks source link

Add parallel to trimm audio #53

Closed SlimRG closed 1 year ago

SlimRG commented 1 year ago

One of the slowest moments You shouldn't use only one cpu's core

SlimRG commented 1 year ago
image
ThioJoe commented 1 year ago

True, but it is something I'd have to learn to do. I am not familiar with multi-core or multi-processor programming

ThioJoe commented 1 year ago

I tested implementing parallel processing with both multithreading and multiprocessing. It worked, but it was actually slower than doing it sequentially. Python sucks at doing parallel processing. It might be possible, but I'm not going to spend any more time on it.