zsxkib / realistic-voice-cloning

Create song covers with any RVC v2 trained AI voice from audio files.

  • Public
  • 634.7K runs
  • T4
  • GitHub
  • License

Input

Video Player is loading.
Current Time 00:00:000
Duration 00:00:000
Loaded: 0%
Stream Type LIVE
Remaining Time 00:00:000
 
1x
file

Upload your audio file here.

string

RVC model for a specific voice. If using a custom model, this should match the name of the downloaded model. If a 'custom_rvc_model_download_url' is provided, this will be automatically set to the name of the downloaded model.

Default: "Squidward"

string
Shift + Return to add a new line

URL to download a custom RVC model. If provided, the model will be downloaded (if it doesn't already exist) and used for prediction, regardless of the 'rvc_model' value.

string

Adjust pitch of AI vocals. Options: `no-change`, `male-to-female`, `female-to-male`.

Default: "no-change"

number
(minimum: 0, maximum: 1)

Control how much of the AI's accent to leave in the vocals.

Default: 0.5

integer
(minimum: 0, maximum: 7)

If >=3: apply median filtering median filtering to the harvested pitch results.

Default: 3

number
(minimum: 0, maximum: 1)

Control how much to use the original vocal's loudness (0) or a fixed loudness (1).

Default: 0.25

string

Best option is rmvpe (clarity in vocals), then mangio-crepe (smoother vocals).

Default: "rmvpe"

integer

When `pitch_detection_algo` is set to `mangio-crepe`, this controls how often it checks for pitch changes in milliseconds. Lower values lead to longer conversions and higher risk of voice cracks, but better pitch accuracy.

Default: 128

number
(minimum: 0, maximum: 0.5)

Control how much of the original vocals' breath and voiceless consonants to leave in the AI vocals. Set 0.5 to disable.

Default: 0.33

number

Control volume of main AI vocals. Use -3 to decrease the volume by 3 decibels, or 3 to increase the volume by 3 decibels.

Default: 0

number

Control volume of backup AI vocals.

Default: 0

number

Control volume of the background music/instrumentals.

Default: 0

number

Change pitch/key of background music, backup vocals and AI vocals in semitones. Reduces sound quality slightly.

Default: 0

number
(minimum: 0, maximum: 1)

The larger the room, the longer the reverb time.

Default: 0.15

number
(minimum: 0, maximum: 1)

Level of AI vocals with reverb.

Default: 0.2

number
(minimum: 0, maximum: 1)

Level of AI vocals without reverb.

Default: 0.8

number
(minimum: 0, maximum: 1)

Absorption of high frequencies in the reverb.

Default: 0.7

string

wav for best quality and large file size, mp3 for decent quality and small file size.

Default: "mp3"

Output

Video Player is loading.
Current Time 00:00:000
Duration 00:00:000
Loaded: 0%
Stream Type LIVE
Remaining Time 00:00:000
 
1x
Generated in

This example was created by a different version, zsxkib/realistic-voice-cloning:a0076ea1.

Run time and cost

This model costs approximately $0.044 to run on Replicate, or 22 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia T4 GPU hardware. Predictions typically complete within 4 minutes. The predict time for this model varies significantly based on the inputs.

Readme

Realistic Voice Cloning v2 (RVC v2) 🎙️🎭

Overview 🔊

Realistic Voice Cloning v2 (RVC v2) is a voice-to-voice model that transforms an input voice into a target voice. This tool is built upon the amazing work of SociallyIneptWeeb. We’ve wrapped his AICoverGen repo to work on Replicate! Allowing us to create AI songs with any RVCv2 model on the web!

Support SociallyIneptWeeb and learn more about his work through:

Pre-loaded Model 🦑

The RVC v2 comes pre-loaded with the Squidward voice model for immediate use.

Getting Other Voices 💥

You can expand your RVC v2’s capabilities by downloading additional models from places like QuickWick’s Music-AI-Voices Hugging Face Repository. Here’s how:

  1. Visit the repository and go to Files and Versions

  2. Select a model, such as the Music-AI-Voices/2Pac Tupac (RVC) 150 Epoch. It’s important to pick a model which has “(RVC)” in the name

  3. Then click on the .zip file to access the model’s download page, e.g., 2Pac Tupac (RVC) 150 Epoch

  4. Right click on the download button and copy the link address - e.g. download URL: https://huggingface.co/QuickWick/Music-AI-Voices/resolve/main/2Pac%20Tupac%20(RVC)%20150%20Epoch/2Pac%20Tupac%20(RVC)%20150%20Epoch.zip?download=true as custom_rvc_model_download_url

  5. Select the model to use (once it’s automatically downloaded) rvc_model = "CUSTOM"

Note: Ensure that the rvc_model and custom_rvc_model_download_name match, as they represent the chosen model and the name of the downloaded model file, respectively.

Another good websites to find RVC (v2) models are voice-models

Terms of Use 📚

The use of the converted voice for the following purposes is prohibited.

  • Criticizing or attacking individuals.

  • Advocating for or opposing specific political positions, religions, or ideologies.

  • Publicly displaying strongly stimulating expressions without proper zoning.

  • Selling of voice models and generated voice clips.

  • Impersonation of the original owner of the voice with malicious intentions to harm/hurt others.

  • Fraudulent purposes that lead to identity theft or fraudulent phone calls.

Disclaimer ‼️

I am not liable for any direct, indirect, consequential, incidental, or special damages arising out of or in any way connected with the use/misuse or inability to use this software.