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

Uploaded Source

Built Distribution

zerorvc-0.0.13-py3-none-any.whl (44.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for zerorvc-0.0.13.tar.gz
Algorithm Hash digest
SHA256 f215edf9093d58d8e9e7a3885b5fabfd98331ef5962ae36b1f12ae14fb91eac6
MD5 fd22164ec1ba312b2d907aa3f6e7d8f6
BLAKE2b-256 51d9806c0d6aaaa082fd7027e6c4b168264db6c53b4081b79cccad40ca5bccdb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for zerorvc-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 143b205efa9514c1dda9468a93eee2b8801fe4226d30fcf725871927b10fe5c3
MD5 b548ffd9d89c7eeaa09942e11f5459e1
BLAKE2b-256 dabc4ed75dbe7abb400521ea770b2349d07c1071f5e5cf39a7fe06e4e93ffe75

See more details on using hashes here.

Supported by

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