Voice Training on GPU
To achieve high-quality, expressive voice cloning with custom prosody and emotion, you can fine-tune GPT-SoVITS on your own voice samples.
Reference Dataset Preparation
- Record 1 to 3 minutes of clean, dry voice audio using an external microphone.
- Segment the recording into 5 to 10 second WAV clips.
- Generate exact transcripts for each clip.
1-Click Google Colab Training
Rather than running heavy PyTorch CUDA training on your local laptop, use the bundled Google Colab notebook:
Colab Training Steps:
- Open
notebooks/01_voice_clone_sovits_training.ipynbin Colab. - Select Runtime Change runtime type T4 GPU.
- Upload your audio clips and run the automated pipeline (Hubert feature extraction, Semantic token extraction, and SoVITS fine-tuning).
- Download the generated weights (
my_voice.pthandmy_voice.ckpt).
Installing Trained Weights Locally
Place your trained weights in backend/voice_samples/ and update your .env:
ini
REF_AUDIO_PATH=backend/voice_samples/my_voice_ref.wav
REF_TEXT="Hello, this is my trained custom voice speaking."Restart the voice_agent container:
bash
docker compose -f docker-compose.infra.yml -f docker-compose.prod.yml restart voice_agent