Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonashaag/audio-resampling-in-python
Comparison of Python audio resampling implementations
https://github.com/jonashaag/audio-resampling-in-python
Last synced: 9 days ago
JSON representation
Comparison of Python audio resampling implementations
- Host: GitHub
- URL: https://github.com/jonashaag/audio-resampling-in-python
- Owner: jonashaag
- Created: 2020-10-27T09:49:29.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-30T20:08:29.000Z (over 3 years ago)
- Last Synced: 2024-10-20T17:19:04.296Z (17 days ago)
- Language: Jupyter Notebook
- Size: 21.1 MB
- Stars: 44
- Watchers: 3
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Comparison of audio resampling libraries. View the notebook: https://nbviewer.jupyter.org/github/jonashaag/audio-resampling-in-python/blob/master/Audio%20Resampling%20in%20Python.ipynb
### Best by quality
1. Good:
- `scikit.samplerate`/`scikits-samplerate`/`samplerate`/`libsamplerate`
- `librosa`/`resampy` (`"kaiser_best"`)
- `julius`
3. Acceptable:
- `nnresample`
- `lilfilter`
- `torchaudio` (`transforms.Resample` + `resample_waveform`)
- `librosa`/`resampy` (`"kaiser_fast"`)
5. Bad:
- `scipy.signal.resample`### Best by speed
Downsampling from 48 kHz to 44.1 kHz.
| Library | Time on CPU | Time on GPU |
| - | - | - |
| `soxr` | 1.16 ms | no support |
| `scipy.signal.resample` | 2.42 ms | no support |
| `lilfilter` | 4.23 ms | ? |
| `torchaudio` (`transforms.Resample`) | 9.98 ms | ? |
| `torchaudio` (`resample_waveform`) | 10 ms | ? |
| `resampy` (`"kaiser_fast"`) | 10.5 ms | no support |
| `nnresample` | 16 ms | no support |
| `julius` | 16.2 ms | ? |
| `resampy` (`"kaiser_best"`) | 44.8 ms | no support |
| `scikits.samplerate` | 75.5 ms | no support |
| `samplerate` | 76.8 ms | no support |