Skip to main content

aTENNuate (paper)

aTENNuate is a network that can be configured for real-time speech enhancement on raw audio waveforms. It can perform tasks such as audio denoising, super-resolution, and de-quantization. This repo contains the network definition and a set of pre-trained weights for the aTENNuate model.

Note that the repo is meant for denoising performance evaluation on custom audio samples, and is not optimized for inference. It also does not contain the recurrent configuration of the network, so it cannot be directly used for real-time inference by itself. Evaluation should ideally be done on a batch of .wav files at once as expected by the denoise.py script.

Please contact Brainchip Inc. to learn more on the full real-time audio denoising solution. And please consider citation our work if you find this repo useful.

Quickstart

One simply needs a working Python environment, and run the following

pip install attenuate

To run the pre-trained network on custom audio samples, simply put the .wav files (or other format supported by librosa) into the noisy_samples directory (or any directory of your choice), and run the following

import torch
from attenuate import Denoiser

model = Denoiser()
model.eval()

with torch.no_grad():
    model.from_pretrained("PeaBrane/aTENNuate")
    model.denoise('noisy_samples', denoised_dir='test_samples')

# denoised_samples = model.denoise('noisy_samples')  # return torch tensors instead

The denoised samples will then be saved as .wav files in the denoised_samples directory.

Denoising samples

DNS1 synthetic test samples, no reverb

Noisy Sample Denoised Sample
Noisy Sample 1 Denoised Sample 1
Noisy Sample 2 Denoised Sample 2
Noisy Sample 3 Denoised Sample 3

DNS1 real recordings

Noisy Sample Denoised Sample
Noisy Sample 1 Denoised Sample 1
Noisy Sample 2 Denoised Sample 2
Noisy Sample 3 Denoised Sample 3

Metadata

Release files for attenuate 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for attenuate 0.1.1
File Size Uploaded Provenance
attenuate-0.1.1.tar.gz 9.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for attenuate 0.1.1
File Interpreter ABI Platform
attenuate-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.9 kB

Release files / attenuate-0.1.1.tar.gz

Download URL attenuate-0.1.1.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
53da9c8e33690eae0680da7a62edbbdb456645b014a4c1378e3494430aaf0aef
BLAKE2b-256 checksum
How to use checksums
d995f30d97ef97b60d8a8f3788365668da0353b3e37786e623543155e2a4f301
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.0

Release files / attenuate-0.1.1-py3-none-any.whl

Download URL attenuate-0.1.1-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
595a35f3118adc709ff430f8162d8f10b7da987f5dd322b25d84bb88f5671c99
BLAKE2b-256 checksum
How to use checksums
0cbffbea90782cfb34d20a91f59c476d5e5789cb30ac4a77966ef860f2a9eadd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.0

Security for attenuate 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page