Run Retrieval-based Voice Conversion training and inference with ease.
Project description
ZeroRVC
Run Retrieval-based Voice Conversion training and inference with ease.
Features
- Dataset Preparation
- Hugging Face Datasets Integration
- Hugging Face Accelerate Integration
- Trainer API
- Inference API
- Index Support
- Tensorboard Support
- FP16 Support
Dataset Preparation
ZeroRVC provides a simple API to prepare your dataset for training. You only need to provide the path to your audio files. The feature extraction models will be downloaded automatically, or you can provide your own with the hubert
and rmvpe
arguments.
from datasets import load_dataset
from zerorvc import prepare, RVCTrainer
dataset = load_dataset("my-audio-dataset")
dataset = prepare(dataset)
trainer = RVCTrainer(
"my-rvc-model",
dataset_train=dataset["train"],
dataset_test=dataset["test"],
)
trainer.train(epochs=100, batch_size=8, upload="someone/rvc-test-1")
Inference
ZeroRVC provides an easy API to convert your voice with the trained model.
from zerorvc import RVC
import soundfile as sf
rvc = RVC.from_pretrained("someone/rvc-test-1")
samples = rvc.convert("test.mp3")
sf.write("output.wav", samples, rvc.sr)
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
zerorvc-0.0.15.tar.gz
(35.5 kB
view details)
Built Distribution
zerorvc-0.0.15-py3-none-any.whl
(44.6 kB
view details)
File details
Details for the file zerorvc-0.0.15.tar.gz
.
File metadata
- Download URL: zerorvc-0.0.15.tar.gz
- Upload date:
- Size: 35.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fea506fc33b2dbd064122c153b4e23a417a3c6f018d10a18d3ed4226ed823b1 |
|
MD5 | f282f053fa074622635b2f870e203abf |
|
BLAKE2b-256 | 190f878b96143d4dae264bc79216a42af8466d77bac7b1ce0926896e2ad313f7 |
File details
Details for the file zerorvc-0.0.15-py3-none-any.whl
.
File metadata
- Download URL: zerorvc-0.0.15-py3-none-any.whl
- Upload date:
- Size: 44.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 621376016f14a50cc504d940a5f99a21d8a62d44142a2ca0807cb6ea3d87f8e7 |
|
MD5 | 100a4b1c4ca901439fd4328eb5a4dfe9 |
|
BLAKE2b-256 | 66070f8e8173f06ec54f5996cb2f24606b25838aaf10db20d2eb2179f8781ce2 |