Registry / ai-ml / coqui-tts

coqui-tts

JSON →
library0.27.5pypypiunverified

Coqui TTS is a deep learning library for advanced Text-to-Speech synthesis, supporting a wide range of models and languages. It enables tasks like voice cloning, multi-speaker TTS, and emotional speech generation. The current version is 0.27.5, and the library maintains an active development pace with frequent patch and minor releases.

ai-mlllm-agents
Install & Compatibility
Where this runs
tested against v0.27.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
3/9 runs
6/9 runs
py 3.11
3/9 runs
✓ 81.68s
py 3.12
3/9 runs
✓ 80.21s
py 3.13
✕ build_error
✕ dependency_conflict
py 3.9
3/9 runs
✕ timeout
5683MB installed
● package 5683MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

The primary API is exposed through TTS.api, not lower-level internal modules.

from TTS.api import TTS

This quickstart demonstrates how to initialize a Coqui TTS model and synthesize speech to an audio file. It uses a default VITS model for English. Remember to install PyTorch and Torchaudio manually if using coqui-tts versions 0.27.4 or newer. Adjust `gpu=True` for GPU acceleration if available and configured.

from TTS.api import TTS import os # This will download and load a default VITS model into memory. # For GPU, set gpu=True. Ensure appropriate PyTorch version is installed. # If you encounter issues, try a different model_name, e.g., 'tts_models/multilingual/multi-dataset/xtts_v2' # For XTTS, you'd also need a speaker_wav file. # For simpler, single-speaker models, speaker_wav is often optional. tts = TTS(model_name="tts_models/en/ljspeech/vits", progress_bar=True, gpu=False) # Synthesize speech to a file. # Replace 'output.wav' with your desired output path. output_file = "coqui_output.wav" tts.tts_to_file( text="Hello from Coqui TTS, the ultimate text-to-speech library!", file_path=output_file, language="en" ) print(f"Speech saved to {os.path.abspath(output_file)}")
tts --version
Debug
Known footguns
breakingStarting from v0.27.4, `coqui-tts` no longer installs `torch`, `torchaudio`, and `torchcodec` by default. Users must install these PyTorch dependencies manually to match their system (CPU/CUDA) and desired PyTorch version.
breakingThe old caching mechanism for Bark and Tortoise models has been removed. Additionally, the `speaker_id` argument in the `synthesize()` method is deprecated.
gotchaCompatibility issues can arise with the `transformers` library, leading to incorrect output or inference errors. Specific `transformers` versions might be required for certain `coqui-tts` releases.
gotchaCoqui TTS has strict Python version requirements, currently `<3.15,>=3.10`.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
54 hits · last 30 days
chatgpt-user
12
petalbot
7
oai-searchbot
7
ahrefsbot
4
bytedance
3
dotbot
2
amazonbot
2
script
1
Resources