DeepFilterNet Streaming
A Python library for real-time audio denoising using DeepFilterNet, providing streaming audio processing capabilities through C API bindings.
Platform Support
Currently supports the following platforms:
- macOS ARM64 (Apple Silicon)
- Linux x86_64
- Linux ARM64 (aarch64)
Installation
pip install dfnstream-py
Quick Start
from dfnstream_py import DeepFilterNetStreaming
import numpy as np
# Initialize the processor
processor = DeepFilterNetStreaming()
# Process audio chunks
audio_chunk = np.random.randn(1024).astype(np.float32) # Your audio data
denoised_chunk = processor.process_chunk(audio_chunk)
# Don't forget to cleanup
processor.close()
Examples
The examples/ folder contains sample scripts demonstrating different use cases:
Single File Processing
uv run python examples/enhance_wav.py input_audio.wav
Processes a single WAV file and saves the denoised version as input_audio_denoised.wav.
Batch Directory Processing
uv run python examples/enhance_dir.py /path/to/wav/files/
Processes all WAV files in a directory and saves enhanced versions to an outputs/ folder.
API Reference
DeepFilterNetStreaming
The main class for audio processing.
DeepFilterNetStreaming(
model_path=None, # Optional custom model path
atten_lim=None, # Attenuation limit in dB (None = no limit)
log_level="warn", # Logging level: "error", "warn", "info", "debug", "trace"
compensate_delay=True, # Enable delay compensation
post_filter_beta=0.0 # Post-filter beta (0.0 = disabled)
)
Key Methods
process_chunk(audio_chunk)- Process a chunk of audio dataprocess_frame(audio_frame)- Process a single framefinalize()- Get remaining delayed samplesclose()- Clean up resources
Metadata
Release files for dfnstream-py 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dfnstream_py-0.2.1.tar.gz | 89.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dfnstream_py-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 178.2 MB
Release files / dfnstream_py-0.2.1.tar.gz
| Download URL | dfnstream_py-0.2.1.tar.gz |
|---|---|
| Size | 89.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6f36e237af979fb6b076f56b42610f6316a3eda88b8472fcfa775c1e3161b57
|
|
BLAKE2b-256 checksum How to use checksums |
bf18fa54398932ed173a239005aa1b1b3306578eb55cfeb7ff2001c0ac44b7d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|
Release files / dfnstream_py-0.2.1-py3-none-any.whl
| Download URL | dfnstream_py-0.2.1-py3-none-any.whl |
|---|---|
| Size | 89.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
683db593ba3a25e019c733f8c1dee4c8d2130153e82c5b9daf4e58ee62eee591
|
|
BLAKE2b-256 checksum How to use checksums |
90a7716736a536d7dce3521dd73034b7a00a001ad8083cc48e3ef3ae24e79b1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|