Skip to main content

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


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.18.tar.gz (35.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zerorvc-0.0.18-py3-none-any.whl (45.0 kB view details)

Uploaded Python 3

File details

Details for the file zerorvc-0.0.18.tar.gz.

File metadata

  • Download URL: zerorvc-0.0.18.tar.gz
  • Upload date:
  • Size: 35.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for zerorvc-0.0.18.tar.gz
Algorithm Hash digest
SHA256 2911f6e46af747b279c7bb06bef429d5b28b30c45b90e9ff96ea25de25f275d3
MD5 bb5a5936d8041c1e98a692f2cb641c46
BLAKE2b-256 1b13498ebaf0220e9511a689ad35a4e93c8a07d0aebfb16673c79801fb3971c5

See more details on using hashes here.

File details

Details for the file zerorvc-0.0.18-py3-none-any.whl.

File metadata

  • Download URL: zerorvc-0.0.18-py3-none-any.whl
  • Upload date:
  • Size: 45.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for zerorvc-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 b15536a575382c5a2c12caf1d269dd25b0647fcafa4de438892d3145109d3252
MD5 6038bfda3e72dcffee59d87e6894f92f
BLAKE2b-256 7cea219b1489b3c02deea0bc91795c80cfc99a2a0669542c3261d0d4f64e78f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page