Metadata-Version: 2.4
Name: audio-resampler
Version: 0.1.0a2
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Multimedia :: Sound/Audio :: Conversion
License-File: LICENSE
Summary: Polyphase audio resampler: fused downmix, resample and dtype conversion in one pass
License: MIT
Requires-Python: >=3.11
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# audio-resampler

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

```bash
pip install audio-resampler
```

```python
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

```bash
pip install maturin
maturin develop --release
```

