Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

audio-resampler

Polyphase audio resampler as a Python extension. Downmix, resample and dtype conversion happen in a single pass over the buffer.

pip install audio-resampler
from audio_resampler import Converter, prewarm

conv = Converter(in_rate=48000, in_channels=2, out_rate=16000, out_channels=1, out_dtype="i16")
mono_16k = conv.process(stereo_48k_bytes)

# Optional: build coefficient tables up front instead of on first use.
prewarm([(48000, 16000)])

Wheels are abi3 and cover CPython 3.11+ on Linux, macOS and Windows.

Development

pip install maturin
maturin develop --release

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

audio_resampler-0.1.0a1-cp311-abi3-macosx_11_0_arm64.whl (222.6 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

Details for the file audio_resampler-0.1.0a1-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for audio_resampler-0.1.0a1-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33021ea30a05ced12307923b38dc01d39f752293747cbe384765a30228009b2a
MD5 1a9aff7da621def6a9c319b72eef0452
BLAKE2b-256 724e37e4ee123920bd1303caa5d3a799caaaf36bbd77d7bc3a51fc2b5335cde0

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.0

5 files

This release

0.1.0a1 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page