Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

silence in the audios #6

Open
Thomcle opened this issue Oct 31, 2023 · 2 comments
Open

silence in the audios #6

Thomcle opened this issue Oct 31, 2023 · 2 comments

Comments

@Thomcle
Copy link

Thomcle commented Oct 31, 2023

When I stretch an audio with a ratio different from 0.5 in the interval ]0; 1[ the audio size is indeed accelerated but the duration doesn't change. For example when do that in python:

stretch_audio("input.wav", "output.wav", ratio=0.7)

The output.wav file has the same duration as input.wav, but the beginning is correctly accelerated. There is a silence to fill it.

I plot a graph with the ratio on the x-axis (here there was a 0.1 difference between each calculation) and the time on the y-axis. You can see that there are steps and that the duration doesn't change for "special" values :

time evolution of a 47-second audio as a function of ratio

@Madjid513
Copy link

Same error occured with me, any solution ?

@Thomcle
Copy link
Author

Thomcle commented Feb 13, 2024

What I did was I cut the end of the audio from the initial duration and ratio. It's not really a problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants