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.1.tar.gz
(104.2 kB
view hashes)
Built Distribution
soxr-0.1.1-cp38-cp38-win_amd64.whl
(177.2 kB
view hashes)
Close
Hashes for soxr-0.1.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 054dea242f7b1cd30555b2f83c6a317d85e752af5f8f4abbdf807e2821354f66 |
|
MD5 | 0525b0a01dd62fdc488da86e3f54bb68 |
|
BLAKE2b-256 | b880ec83589fbc42f1b3ee5d7a87a824651725c78f52bf877070a5334c9c7dfd |