This release is a pre-release and may not be stable for production use.
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
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
Metadata
Release files for resemble-enhance 0.0.2.dev231215030627
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| resemble-enhance-0.0.2.dev231215030627.tar.gz | 42.5 kB | Without provenance | Details for resemble-enhance-0.0.2.dev231215030627.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| resemble_enhance-0.0.2.dev231215030627-py3-none-any.whl | Python 3 | none | any | Details for resemble_enhance-0.0.2.dev231215030627-py3-none-any.whl |
Total release size: 99.9 kB
Release files / resemble-enhance-0.0.2.dev231215030627.tar.gz
| Download URL | resemble-enhance-0.0.2.dev231215030627.tar.gz |
|---|---|
| Size | 42.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b84cebe10d23d0d75f92e0f486362b587ebbd9ba9ec1df034f2f9610a8fff9e
|
|
BLAKE2b-256 checksum How to use checksums |
518081deab4df6c45791e92b82857b62c12d2b99f4b32875865f3e0f2e36bb94
|
| 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.dev231215030627-py3-none-any.whl
| Download URL | resemble_enhance-0.0.2.dev231215030627-py3-none-any.whl |
|---|---|
| Size | 57.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c135552235f4a5bbc1dc09c09e13110ce8221e74c17be2c66e674bde07abec00
|
|
BLAKE2b-256 checksum How to use checksums |
92a21e18954ddac2698915f50dcd09f921fe94932950b1eabbced7e927b184b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for resemble-enhance 0.0.2.dev231215030627
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.