Skip to content

Repository files navigation

🎀 Voice Cloner - AI Voice Synthesis

Python Streamlit

πŸš€ Advanced AI Voice Cloning & Text-to-Speech

Transform any text into natural speech using your own voice or any reference audio


✨ Features

  • 🎯 Zero-shot Voice Cloning - Clone any voice with just seconds of reference audio
  • 🎭 Emotion Control - Adjust emotional intensity and expression
  • ⚑ Real-Time Processing - Optimized for fast generation
  • πŸ”Š HD Audio Output - Crystal clear, natural-sounding speech
  • 🎨 Premium UI - Modern, beautiful interface

πŸš€ Quick Start

1. Install Dependencies

pip install -r requirements.txt

2. Run the App

streamlit run streamlit_app.py

3. Open in Browser

Navigate to http://localhost:8501

πŸ’» Usage

Web Interface (Recommended)

streamlit run streamlit_app.py

Python API

from src.bhavesh_ai_voice_cloner.tts import BhaveshTTS
import torchaudio as ta

# Initialize the model
model = BhaveshTTS.from_pretrained(device="cuda")

# Generate speech with default voice
text = "Hello! This is AI speaking."
wav = model.generate(text)
ta.save("output.wav", wav, model.sr)

# Clone a specific voice
wav = model.generate(text, audio_prompt_path="reference.wav")
ta.save("cloned_voice.wav", wav, model.sr)

πŸŽ›οΈ Parameters

Parameter Range Default Description
exaggeration 0.25-2.0 0.5 Emotion intensity
cfg_weight 0.0-1.0 0.5 Speech clarity
temperature 0.1-2.0 0.8 Generation randomness

πŸ“ Project Structure

voice-cloner/
β”œβ”€β”€ streamlit_app.py          # Premium web UI
β”œβ”€β”€ launch.py                  # Quick launcher
β”œβ”€β”€ requirements.txt           # Dependencies
β”œβ”€β”€ src/
β”‚   └── bhavesh_ai_voice_cloner/
β”‚       β”œβ”€β”€ tts.py            # Text-to-Speech
β”‚       β”œβ”€β”€ vc.py             # Voice Conversion
β”‚       └── models/           # AI Models
└── README.md

πŸ“„ License

MIT License - see LICENSE for details.


Made with ❀️ by Bhavesh AI

About

🎀 Bhavesh AI Voice Cloner - Advanced AI Voice Cloning & Text-to-Speech with Modern Streamlit UI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages