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.0.3.tar.gz
(101.5 kB
view hashes)
Built Distribution
soxr-0.0.3-cp37-cp37m-win_amd64.whl
(100.7 kB
view hashes)
Close
Hashes for soxr-0.0.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 809328ae5986e1414c24a2b6c8cf770e64c6d2789ac4fba5f8e1b90616610dd9 |
|
MD5 | da6fc5d4ebc31d9c3d44efd80a38530a |
|
BLAKE2b-256 | 9f08994aa0a213bb01037782462dbb03663eb34a0efc75618f8e953065421e75 |