A professional tool for generating and evaluating audio samples from all English Coqui TTS models. This tool helps you identify the best text-to-speech voice for your specific use case by automatically generating samples from each available model.
- Automatically fetches all available English TTS models
- Generates audio samples with customizable text
- Organizes output in a dedicated samples directory
- Real-time progress monitoring
- Detailed success/failure reporting
- Docker-based execution for consistency
- Windows with PowerShell
- Docker Desktop installed and running
- Internet connection for downloading models
- At least 2GB of free disk space for models and samples
-
Clone or download this repository
git clone <repository-url> cd mozilla-tts
-
Ensure Docker is running
- Start Docker Desktop
- Wait for the Docker engine to be running (green icon in taskbar)
-
Open PowerShell in the project directory
-
Run the script:
powershell -ExecutionPolicy Bypass -File ./tts_monitor.ps1
-
Monitor Progress:
- The script will show real-time progress for each model
- Generated audio files will be saved in the
audio_samplesdirectory - Each file will be named:
test_tts_models_en_<model-name>.wav
Edit the variables at the top of tts_monitor.ps1 to customize:
$outputDir = Join-Path $localPath "audio_samples" # Output directory
$ttsText = "This is a test of the model: {MODEL}..." # Sample text
$maxTries = 10 # Number of retries
$sleepSeconds = 2 # Wait time between retries
$audioFilePrefix = "test_" # Output file prefixmozilla-tts/
├── tts_monitor.ps1 # Main script
├── readme.md # This file
└── audio_samples/ # Generated audio files
├── test_tts_models_en_ljspeech_tacotron2.wav
├── test_tts_models_en_vctk_fast_pitch.wav
└── ...
-
Listen to Generated Samples
- Check the
audio_samplesdirectory - Each file includes the model name in its spoken text
- Compare voice quality, clarity, and naturalness
- Check the
-
Choose the Best Model
- Consider your use case requirements
- Note model names of preferred voices
- Use the chosen model name in your final implementation
-
"Docker not running" error
- Ensure Docker Desktop is running
- Wait a few seconds and try again
-
"No English models found"
- Check your internet connection
- Verify Docker can pull images
-
"Permission denied" errors
- Run PowerShell as Administrator
- Check folder permissions
- The script tracks successful and failed generations
- Failed models are listed at the end
- You can safely re-run the script to retry failed models
- Check for new Coqui TTS releases periodically
- Update the Docker image tag if needed
- Keep Docker Desktop updated
- Generated audio files are saved in WAV format
- Each model may take several minutes to download initially
- Models are cached in Docker for subsequent runs
If you encounter issues:
- Check the troubleshooting section
- Verify your setup matches requirements
- Check Docker logs for detailed errors
The script runs with execution policy bypass for convenience. Always review scripts before running them with elevated privileges.