High quality, one-dimensional sample-rate conversion library
Project description
Python-SoXR
High quality, one-dimensional sample-rate conversion library for Python
Installation
pip install soxr
If installation fails, upgrade pip with python -m pip install --upgrade pip
and try again.
Basic usage
import soxr
y = soxr.resample(
x, # 1D(mono) or 2D(frames, channels) array input
48000, # input samplerate
16000 # target samplerate
)
Output is 2D numpy.ndarray with shape (frames, channels).
Credits
libsoxr (LGPLv2.1+)
https://sourceforge.net/projects/soxr/
Python-SoXR is a Python wrapper of libsoxr
PFFFT (BSD-like)
https://bitbucket.org/jpommier/pffft/
libsoxr uses PFFFT as FFT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
soxr-0.1.0.tar.gz
(104.2 kB
view hashes)
Built Distribution
soxr-0.1.0-cp38-cp38-win_amd64.whl
(179.0 kB
view hashes)
Close
Hashes for soxr-0.1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55340094242b7957d83531b0003443a218c511bab5024cd188a6986c6d6d3dd7 |
|
MD5 | eb4c452dcd5192e650c884771eda8c96 |
|
BLAKE2b-256 | 63960dca58eda7ba1e200092be5154beb36a4756f7e11450c06d00072bf4e7ac |