Overview
This guide walks you through deploying Smallest Self-Host Text-to-Speech (TTS) using Docker Compose. You’ll have a fully functional text-to-speech service running in under 15 minutes.Ensure you’ve completed all prerequisites before starting this guide.
Step 1: Create Project Directory
Create a directory for your deployment:Step 2: Login to Container Registry
Authenticate with the Smallest container registry using credentials provided by support:Step 3: Create Environment File
Create a.env file with your license key:
your-license-key-here with the actual license key provided by Smallest.ai.
Step 4: Create Docker Compose File
Create adocker-compose.yml file for TTS deployment:
docker-compose.yml
Step 5: Start Services
Launch all services with Docker Compose:- First Time Startup
- Subsequent Startups
First startup will take 3-5 minutes as the system:
- Pulls container images (~15-25 GB, includes TTS models)
- Initializes GPU and loads models
Step 6: Monitor Startup
Watch the logs to monitor startup progress:Ctrl+C to stop following logs.
Step 7: Verify Installation
Check that all containers are running:Step 8: Test API
Test the API with a sample request:Common Startup Issues
GPU Not Found
GPU Not Found
Error: If this fails, reinstall NVIDIA Container Toolkit.
could not select device driver "nvidia"Solution:License Validation Failed
License Validation Failed
Error:
License validation failedSolution:- Verify LICENSE_KEY in
.envis correct - Check internet connectivity
- Ensure firewall allows HTTPS to api.smallest.ai
Port Already in Use
Port Already in Use
Error: Either stop the conflicting service or change the port in docker-compose.yml
port is already allocatedSolution:
Check what’s using the port:Managing Your Deployment
Stop Services
Restart Services
View Logs
Update Images
Pull latest images and restart:Remove Deployment
Stop and remove all containers:What’s Next?
TTS Configuration
Customize your TTS deployment with advanced configuration options
TTS Services Overview
Learn about each TTS service component in detail
TTS Troubleshooting
Debug common issues and optimize performance
API Reference
Integrate with your applications using the API

