All articles
AI Tools

How I Cloned My Own Voice in 60 Seconds Using GPT-SoVITS (Open-Source)

ElevenLabs is the industry standard for AI voices, but it's expensive. GPT-SoVITS is an open-source project that can clone your voice with terrifying accuracy using just one minute of audio. Here is how I set it up.

·8 min
How I Cloned My Own Voice in 60 Seconds Using GPT-SoVITS (Open-Source)

The Problem with Commercial Voice AI

I needed a voiceover for a YouTube coding tutorial, but my microphone was terrible and there was construction noise outside my window.

I signed up for ElevenLabs to clone my voice. It worked incredibly well, but it costs $22 a month if you want a decent amount of generated audio. Furthermore, I wasn't thrilled about uploading my biometric vocal data to a remote cloud server.

I started digging into the open-source audio world and found GPT-SoVITS. It's a project with over 30,000 stars on GitHub, and the results are legitimately terrifying. It requires as little as 5 to 60 seconds of reference audio, and it clones your accent, emotion, and timbre almost perfectly.

What Makes GPT-SoVITS Different?

What Makes GPT-SoVITS Different?

Traditional Text-To-Speech (TTS) models sound robotic. Even older AI models struggle with pacing and breathing.

GPT-SoVITS combines two architectures. The "GPT" part understands the text you want it to say, analyzing where the pauses, emphases, and emotional beats should be. The "SoVITS" (SoftVC VITS) part is responsible for the actual acoustic rendering—making it sound exactly like the specific person.

It even supports cross-lingual synthesis. I recorded a 30-second clip of me speaking English, gave it a Chinese paragraph, and it generated audio of my voice speaking perfectly fluent Mandarin.

Step 1: Installation

Because GPT-SoVITS handles audio processing, it requires a dedicated GPU (Nvidia RTX 3060 or higher is recommended) to run quickly.

The easiest way to install it is using the pre-packaged WebUI released by the developers.

  • Go to the GPT-SoVITS GitHub page.
  • Download the "Windows Precompiled Package" (it's a large zip file).
  • Extract it to your drive.
  • Double-click the go-webui.bat file.

A command prompt will open, install some final dependencies, and launch a web interface in your browser at localhost.

Step 2: Preparing the Reference Audio

The model is only as good as the reference audio you provide.

I used my phone to record a 60-second voice memo in a quiet room. I spoke naturally, with some variation in tone (not just a flat monotone reading).

Crucial step: You must transcribe exactly what you said in that 60-second clip. The AI needs the audio file and the exact text of what is being spoken in that file to map the phonemes to your vocal frequencies.

Step 3: Cloning and Generating

In the GPT-SoVITS WebUI, the process is straightforward:

  1. Upload Reference: Upload your 60-second `.wav` file.
  2. Reference Text: Paste the exact transcription of that audio file.
  3. Target Text: This is what you actually want the AI to say. I pasted the script for my YouTube tutorial.
  4. Language Selection: Make sure both the reference language and target language are set correctly.

Click Synthesize.

Because it was running locally on my RTX 4070, it generated 3 minutes of audio in about 15 seconds.

The Result

I pressed play. It was me. It had the slight rasp in my voice. It took a realistic breath before a long sentence. It even matched my slight upward inflection at the end of questions.

I sent it to a friend without context, and they had absolutely no idea it was AI.

This technology being open-source and free is both incredible and slightly alarming. It highlights the absolute necessity of digital watermarks and ethical use. But for indie developers, content creators, and game devs looking to voice an entire RPG using their own customized voices for zero cost—GPT-SoVITS is a massive breakthrough.

FAQ

Can I use GPT-SoVITS on a Mac?

Yes, there is experimental support for Apple Silicon via the MPS backend, but the setup requires using the terminal and installing PyTorch manually. The Windows pre-compiled package is much easier.

Is it legal to clone someone else's voice?

Ethics and legality are highly complex here. You should ONLY clone voices you have explicit permission to use. Cloning celebrities or politicians without consent violates the terms of service of almost all platforms and can result in severe legal action.

Does it work for real-time voice changing?

No, GPT-SoVITS is a Text-to-Speech (TTS) system, not a Voice Changer (RVC). If you want to speak into a mic and have it instantly sound like someone else, look into the Retrieval-based Voice Conversion (RVC) project instead.

Explore RuView on GitHub

Browse the Rust engine, ESP32 firmware and examples.

RuView GitHub