Skip to main content

Simple RVC

counter

A Simple RVC Inference

How to Use

Initialize Configuration

First, initialize the configuration using your provided Config class:

config = Config(device="cuda:0", is_half=True)

Create an Instance of the RVC Utility

Next, create an instance of the RVCUtil:

from srvc import RVCUtil

rvc_util = RVCUtil(device="cuda:0", is_half=True, config=config)

Load the Hubert Model

Load the Hubert model with the following command:

hubert_model = rvc_util.load_hubert("path/to/hubert_model.pt")

Load the Voice Conversion Model

Load the voice conversion model using:

cpt, version, net_g, tgt_sr, vc = rvc_util.get_vc("path/to/vc_model.pth")

Run Inference

Finally, run the inference with the desired parameters:

rvc_util.rvc_infer(
    index_path="path/to/index_file",
    index_rate=0.5,
    input_path="path/to/input.wav",
    output_path="path/to/output.wav",
    pitch_change=0.0,
    f0_method="rmvpe",  # example: 'rmvpe' or 'fcpe'
    cpt=cpt,
    version=version,
    net_g=net_g,
    filter_radius=3,
    tgt_sr=tgt_sr,
    rms_mix_rate=0.33,
    protect=0.33,
    crepe_hop_length=160,
    vc=vc,
    hubert_model=hubert_model,
    f0autotune=False
)

Notes

  • Ensure that you replace the placeholder paths (e.g., path/to/hubert_model.pth) with the actual paths to your model files.
  • Adjust the inference parameters according to your requirements.

This should make the README more structured and easier to follow.

Metadata

Release files for srvc 0.1.0

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

Source distribution (sdist)

Source distribution for srvc 0.1.0
File Size Uploaded Provenance Actions
srvc-0.1.0.tar.gz 3.3 kB Without provenance Details for srvc-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for srvc 0.1.0
File Interpreter ABI Platform Actions
srvc-0.1.0-py3-none-any.whl Python 3 none any Details for srvc-0.1.0-py3-none-any.whl

Total release size: 6.2 kB

Release files / srvc-0.1.0.tar.gz

Download URL srvc-0.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a3f9a114e60cdeb13cd5c45030134dda85391aded680e89c3e8be39a2c727b1e
BLAKE2b-256 checksum
How to use checksums
47aa03d8c25b93cb421edf58d1aa3bf652450c70e584f9f5732cfd6a2c70550b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / srvc-0.1.0-py3-none-any.whl

Download URL srvc-0.1.0-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6460cbdd495c97df32a0a08d6554a038e37fdc2d297d21d8199ec827285912da
BLAKE2b-256 checksum
How to use checksums
99aa63d52b2d2c4f3ab233274af4b1f64261627b67615bd90b2750e30f0580ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Security for srvc 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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