Skip to content

gordon123/ai-voice-cloning

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Voice Cloning

Note I do not plan on actively working on improvements/enhancements for this project, this is mainly meant to keep the repo in a working state in the case the original git.ecker goes down or necessary package changes need to be made.

That being said, some enhancements added compared to the original repo:

✔️ Possible to train in other languages

✔️ Hifigan added, allowing for faster inference at the cost of quality.

✔️ whisper-v3 added as a chooseable option for whisperx

✔️ Output conversion using RVC

This is a fork of the repo originally located here: https://git.ecker.tech/mrq/ai-voice-cloning. All of the work that was put into it to incoporate training with DLAS and inference with Tortoise belong to mrq, the author of the original ai-voice-cloning repo.

Setup

Check my youtube video for instruction https://youtu.be/wuB8GLdS7-4?si=z_Y5KxGpPcLycnB6
This instruction For setup on Runpod.io , if you don't have runpod account create one and add credit minimum 10USD

Alternative Manual Installation

In runpod choose template
Screenshot 2025-02-14 at 19 29 08
Pod setup lool like this
Screenshot 2025-02-14 at 19 40 12

  1. Clone the repository
git clone https://github.com/gordon123/ai-voice-cloning.git

** this repo I updated only main.py to run on the gradio public all the work go to https://github.com/JarodMica/ai-voice-cloning or his Youtube tutorials below

  1. create venv type

    python -m venv venv
    

    activate it

     source /workspace/venv/bin/activate
    

    now you should see (venv) at the begining of the command line

  2. run

    cd ai-voice-cloning
    
    bash setup-cuda.sh
    

    It will start running through all of the python packages needed !!! WAIT WAIT WAIT
    For sometime it will show this error , hit Ctrl+ C to exist

    import tkinter as tk
    ModuleNotFoundError: No module named 'tkinter'
    

    Ctrl + C to exist then type

    apt-get update
    apt-get install python3.11-tk
    
  3. After it finishes, run

    bash start.sh
    

    For this first time and this will start downloading most of the models you'll need. WAIT WAIT WAIT!!!!!

    • Some models are downloaded when you first use them. You'll incur additional downloads during generation and when training (for whisper). However, once they are finished, you won't ever have to download them again as long as you don't delete them. They are located in the models folder of the root.

    If you see this message Removing weight norm...Loaded vocoder model....Loaded TTS, ready for generation. then look up find Gradio link like in this photo
    Screenshot 2025-02-14 at 19 51 50
    you should see something like this Running on public URL: https://7f6e62958285392788.gradio.live copy this link to browser and test to generate some text Have fun!!

    Lastly, delete your pod after you download your training model or any generated files, otherwise Runpod will charge you over time!
    Screenshot 2025-02-14 at 20 36 23

CLICK THE BIN ICON, IT WILL PERMANENTLY DELETE EVERYTHING, BACK UP FILES YOU NEED FIRST

  1. (Optional) You can opt to install whisperx for training by running setup-whipserx.bat
    • Check out the whisperx github page for more details, but it's much faster for longer audio files. If you're processing one-by-one with an already split dataset, it doesn't improve speeds that much.

Instructions

Checkout the YouTube video:

Watch First: https://youtu.be/WWhNqJEmF9M?si=RhUZhYersAvSZ4wf

Watch Second (RVC update): https://www.youtube.com/watch?v=7tpWH8_S8es&t=504s

Everything is pretty much the same as before if you've used this repository in the past, however, there is a new option to convert text output using rvc. Before you can use it, you will need a trained RVC .pth file that you get from RVC or online, and then you will need to place it in models/rvc_models/. Both .index and .pth files can be placed in here and they'll show up correctly in their respective dropdown menus.

To enable rvc:

  1. Check and enable Show Experimental Settings to reveal more options
  2. Check and enable Run the outputter audio through RVC. You will now have access to parameters you could adjust in RVC for the RVC voice model you're using.

About

this for setup on Runpo.io online

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.1%
  • Jupyter Notebook 7.0%
  • Shell 4.9%
  • Batchfile 4.2%
  • Dockerfile 0.8%