twardoch / audiostretchy

AudioStretchy is a Python wrapper around the `audio-stretch` C library, which performs fast, high-quality time-stretching of WAV/MP3 files without changing their pitch. Works well for speech, can time-stretch silence separately.
https://pypi.org/project/audiostretchy/
BSD 3-Clause "New" or "Revised" License
35 stars 2 forks source link

How does gap_ratio works? #1

Closed orbitaloop closed 1 year ago

orbitaloop commented 1 year ago

Hi, First of all, thank you so much for your work, your lib is super useful for my project with ElevenLabs.

I can't wrap my head on the gap_ratio parameters. If I understand well, it's to increase the silence length in audio, isn't it? So if I want to slow down a speech by 30% and increase the silence length by 2 (or 100%) I would use this command: audiostretchy tests_audio.wav test_audio-1.3.wav -r 1.3 -g 2 But it doesn't seem to increase the silence. I feel I'm missing something... Thanks for your help!

twardoch commented 1 year ago

It should work like that, yes