Speech denoising and enhancement with deep learning
Project description
Resemble Enhance
https://github.com/resemble-ai/resemble-enhance/assets/660224/bc3ec943-e795-4646-b119-cce327c810f1
Resemble Enhance is an AI-powered tool that aims to improve the overall quality of speech by performing denoising and enhancement. It consists of two modules: a denoiser, which separates speech from a noisy audio, and an enhancer, which further boosts the perceptual audio quality by restoring audio distortions and extending the audio bandwidth. The two models are trained on high-quality 44.1kHz speech data that guarantees the enhancement of your speech with high quality.
Usage
Installation
pip install resemble-enhance
Enhance
resemble_enhance in_dir out_dir
Denoise only
resemble_enhance in_dir out_dir --denoise_only
Web Demo
We provide a web demo built with Gradio, you can try it out here, or also run it locally:
python app.py
Train your own model
Data Preparation
You need to prepare a foreground speech dataset and a background non-speech dataset. In addition, you need to prepare a RIR dataset (examples).
data
├── fg
│ ├── 00001.wav
│ └── ...
├── bg
│ ├── 00001.wav
│ └── ...
└── rir
├── 00001.npy
└── ...
Training
Denoiser Warmup
Though the denoiser is trained jointly with the enhancer, it is recommended for a warmup training first.
python -m resemble_enhance.denoiser.train --yaml config/denoiser.yaml
Enhancer
Then, you can train the enhancer in two stages. The first stage is to train the autoencoder and vocoder. And the second stage is to train the latent conditional flow matching (CFM) model.
Stage 1
python -m resemble_enhance.enhancer.train --yaml config/enhancer_stage1.yaml
Stage 2
python -m resemble_enhance.enhancer.train --yaml config/enhancer_stage2.yaml
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
Built Distribution
File details
Details for the file resemble-enhance-0.0.1.tar.gz
.
File metadata
- Download URL: resemble-enhance-0.0.1.tar.gz
- Upload date:
- Size: 42.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64f67a4cd9f7cbbaa6555364b328eabeac82ea60bf5f7880e06794ff1fa4e942 |
|
MD5 | 136ee4da048935f66d9e49d1e69ad8d4 |
|
BLAKE2b-256 | 22ab6672d4d4d446751eb6d301e94380c0d986bb662b293e9c2cf058f28aae13 |
File details
Details for the file resemble_enhance-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: resemble_enhance-0.0.1-py3-none-any.whl
- Upload date:
- Size: 57.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aa565cba75b93e2f82603d72c19aadaf4fc5237ca0babca7dd0853b5bf3432a |
|
MD5 | 10f2b0f8126240a25e342d7597b7a99c |
|
BLAKE2b-256 | 63d70db22bfabba92bce9ca6ec0f8f86e9510520550076b84011bb307b3c2854 |