A containerized FastAPI server for the powerful Chatterbox TTS model by Resemble AI. Features a modern Web UI, voice cloning, large text processing, and GPU acceleration.
š£ļø High-quality text-to-speech synthesis
š¤ Voice cloning with reference audio
š Modern Web UI and REST API
š Large text handling with intelligent chunking
š GPU acceleration (NVIDIA CUDA 12.4)
š OpenAI-compatible API endpoints
š¦ Pre-built voices included
Prerequisites:
š§ Environment Variables:
š Volume Mounts:
Generate Speech:
curl -X POST "http://localhost:8004/tts" \
-H "Content-Type: application/json" \
-d '{
"text": "Hello, this is Chatterbox TTS!",
"voice_mode": "predefined",
"voice_id": "default"
}' \
--output speech.wav
Voice Cloning:
curl -X POST "http://localhost:8004/tts" \
-H "Content-Type: application/json" \
-d '{
"text": "This will sound like the reference voice!",
"voice_mode": "clone",
"clone_reference_filename": "my_voice.wav"
}' \
--output cloned_speech.wav
The default configuration works out of the box. To customize:
Key configuration options:
GPU not detected:
nvidia-smidocker run --gpus all nvidia/cuda:12.4.0-base-ubuntu22.04 nvidia-smiModel download issues:
Performance issues:
shm_size: '2gb' to docker-composeContent type
Image
Digest
sha256:2aae9a01cā¦
Size
5 GB
Last updated
over 1 year ago
docker pull babanovac1980/chatterbox-tts-server