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

Switch to a faster library for dynamic resampling #190

Open
juanmc2005 opened this issue Oct 24, 2023 · 1 comment
Open

Switch to a faster library for dynamic resampling #190

juanmc2005 opened this issue Oct 24, 2023 · 1 comment
Labels
feature New feature or request

Comments

@juanmc2005
Copy link
Owner

Looks like torchaudio.Resample is not very fast compared to other libraries implementing resampling in python.

See https://github.com/jonashaag/audio-resampling-in-python

Looks like we could switch to soxr and get a 10x speed increase.

@juanmc2005 juanmc2005 added the feature New feature or request label Oct 24, 2023
@pnocera
Copy link

pnocera commented Oct 28, 2023

hi Juan. I found a cheap way to avoid resampling if you're using pipewire is to force the rate with

pw-metadata -n settings 0 clock.force-rate 16000

that's for microphone reording.

There's also an aubio library which provides resampling. It provides a python module

https://aubio.org/doc/latest/synth_2test-sampler_8c-example.html

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

No branches or pull requests

2 participants