Closed ruippgoncalves closed 1 year ago
Hmm interesting
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.
Moving this to a discussion
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.