Skip to main content
Pre-release

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

Resemble Enhance

PyPI Hugging Face Space License Webpage

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

Install the stable version:

pip install resemble-enhance --upgrade

Or try the latest pre-release version:

pip install resemble-enhance --upgrade --pre

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 runs/denoiser

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 runs/enhancer_stage1
Stage 2
python -m resemble_enhance.enhancer.train --yaml config/enhancer_stage2.yaml runs/enhancer_stage2

Blog

Learn more on our website!

Release files for resemble-enhance 0.0.2.dev240104122303

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

Source distribution (sdist)

Source distribution for resemble-enhance 0.0.2.dev240104122303
File Size Uploaded
resemble-enhance-0.0.2.dev240104122303.tar.gz 42.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for resemble-enhance 0.0.2.dev240104122303
File Interpreter ABI Platform
resemble_enhance-0.0.2.dev240104122303-py3-none-any.whl Python 3 none any Details

Total release size:99.6 kB

Release files / resemble-enhance-0.0.2.dev240104122303.tar.gz

Download URL resemble-enhance-0.0.2.dev240104122303.tar.gz
Size 42.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8876bfb28ff2c4c5c57aac966328797392f7f000509731d3e01de4ac7530bc79
BLAKE2b-256 checksum
How to use checksums
55c2cc67524d8758f2da18510f77bd02c444781672572d2dfcb675991166997d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / resemble_enhance-0.0.2.dev240104122303-py3-none-any.whl

Download URL resemble_enhance-0.0.2.dev240104122303-py3-none-any.whl
Size 57.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d65d4233f86823347a418d48826d1460b50f98eabfe14f6e3e625da1da64a267
BLAKE2b-256 checksum
How to use checksums
b944b7a5220c1e028c6753eed450bb791e8ca6158135d5db638bff5fc22ef29f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6
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