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

Better audio speed #3

Closed ruippgoncalves closed 1 year ago

ruippgoncalves commented 1 year ago

The youtube playback speed uses the default browser, so in your case, it is Chrome, you can look at chromium (the open source part of the browser) and see what they are using...

https://www.chromium.org/developers/design-documents/video/

But corting short, they are using ffmpeg which is open source and can be used to improve the audio quality.

ThioJoe commented 1 year ago

Hmm interesting

jn-jairo commented 1 year ago

I believe you are looking for the ffmpeg option atempo.

It does a great job, but I use SoX to change audio duration without changing pitch and it has the same quality as ffmpeg if you use the right option.

I use the command line but there is a python library pysox, you need to use the tempo method with the option for speech.

ThioJoe commented 1 year ago

Moving this to a discussion