Fast text-to-speech with GPU acceleration, voice cloning, and 1100+ languages.
# Setup
./scripts/setup.sh
pip install -e .
# CLI
babel tts "Hello world" # Quick TTS
babel voice # Voice control
babel serve # Start API (port 5003)
# Web UI
cd web-ui && npm run dev # UI on port 3200- Fast: 10ms cache hits, GPU-accelerated
- 109 voices (VCTK) + 1100+ languages (Fairseq)
- Web UI: Next.js interface with voice selector
- CLI: Modern Click-based command interface
- API: FastAPI server with GZip compression
# Clone and setup
git clone https://github.com/raintree-technology/babel.git
cd babel
./scripts/setup.sh
# Install as package
pip install -e .# Text-to-speech
babel tts "Hello world"
babel tts "Hello" --speed 1.2 --speaker ED
# Voice control
babel voice --model base
# API server
babel serve --port 5003
# Utilities
babel benchmark
babel clean
babel --helpfrom babel_tts import OptimizedTTSClient
client = OptimizedTTSClient()
wav_bytes = client.generate_wav_bytes("Hello", speaker="ED")
client.speak("Hello world", speed=1.0)# Start server
babel serve
# Generate speech
curl -X POST http://localhost:5003/api/tts \
-H "Content-Type: application/json" \
-d '{"text": "Hello", "speaker": "ED", "speed": 1.0}'- macOS (Apple Silicon or Intel) or Linux
- Python 3.11+
- 2GB RAM, 3GB disk
babel/
├── src/babel_tts/ # Python package
│ ├── tts/ # TTS engines
│ ├── stt/ # Speech-to-text
│ ├── api/ # FastAPI server
│ ├── voice/ # Voice control
│ └── cli/ # CLI commands
├── web-ui/ # Next.js frontend
├── scripts/ # Setup & utilities
├── docs/ # Documentation
└── pyproject.toml # Package config
- VCTK: 109 English voices (default)
- FastPitch: Fastest single voice
- Fairseq: 1100+ languages
- Cold generation: ~1.3s
- Cached: <20ms (126x faster)
- GPU: Apple Silicon MPS + CUDA
- Cache: Dual LRU (audio + WAV bytes)
- SECURITY.md - Security features
- THIRD_PARTY_LICENSES.md - Attribution
- docs/ - Technical docs
MIT License - See LICENSE for details.
Third-party components:
- Coqui TTS: MPL 2.0
- faster-whisper: MIT
- CTranslate2: MIT