# Real-Time-Voice-Cloning

> Clone a voice from a few seconds of audio and generate arbitrary speech in real time.

- Type: agent or tool
- Field: Audio & Video
- Repository: https://github.com/CorentinJ/Real-Time-Voice-Cloning
- GitHub stars: 60246
- Licence: NOASSERTION
- Language: Python
- Last push: 2026-03-09
- Page: https://imutechz.in/agents/real-time-voice-cloning

## What it is
This repository implements the SV2TTS framework from a master's thesis. In its first stage it builds a digital representation of a voice from a few seconds of audio, and in the second and third stages it uses that to generate speech from any text with a real-time vocoder. It includes a GUI toolbox and a command-line demo and runs on Windows and Linux. The author notes newer tools may give better audio quality.

## Features
- Voice cloning from a few seconds of audio
- Encoder, synthesizer and vocoder pipeline
- GUI toolbox and command-line demo
- CPU or NVIDIA GPU runs through uv
- Pretrained models downloaded automatically

## Best for
- Studying how SV2TTS works
- Experimenting with voice cloning locally
- Reproducing the thesis implementation
- Learning speech synthesis pipelines

## Pros
- Runs locally on Windows and Linux
- Pretrained models download automatically
- Code maps to published papers

## Cons
- Author says audio quality is behind newer options
- Needs ffmpeg and uv installed

## Install
```
pip install -U uv
uv run --extra cuda demo_toolbox.py
uv run --extra cpu demo_toolbox.py
```

## Usage
```
uv run --extra cpu demo_cli.py
```

Tags: voice-cloning, text-to-speech, tts, pytorch, deep-learning, speech-synthesis, python, audio
