open-edge-platform/edge-ai-libraries/text-to-speech-dev
Claude Code and agent skill by open-edge-platform/edge-ai-libraries
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Build, configure, deploy, and operate the Text To Speech microservice. Use this skill when a developer or operator wants to: run the service with Docker Compose or on the host; build the image from source; select a TTS model (Kokoro, SpeechT5 — Qwen3-TTS currently cannot run on any device due to a dependency conflict) and its runtime/device/precision; wire Docker volumes and `/dev/dri` GPU passthrough; tune `config.yaml` and `TEXT_TO_SPEECH__...` overrides; or debug a startup, permission, GPU-v…
Install
npx vskill@latest install open-edge-platform/edge-ai-libraries/text-to-speech-devSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as open-edge-platform/edge-ai-libraries/text-to-speech-dev.
Text To Speech Developer Skill
Help developers and operators build, configure, deploy, and troubleshoot the Text To Speech microservice.
Codebase root:microservices/text-to-speech/
When to Use
- Deploying the service with Docker Compose (prebuilt image or local build)
- Running the service directly on the host with a Python virtualenv
- Choosing a TTS model (Kokoro, SpeechT5, or Qwen3-TTS) and its
runtime/device/precision
- Wiring GPU device passthrough (
/dev/dri,RENDER_GID) - Debugging a service that will not start, fails health checks, reports GPU
context errors, or raises permission errors on mounted volumes
- Resolving a leftover container name conflict
Quick Facts
| Fact | Value | |
|---|---|---|
| Default port | 8011 (standalone and Docker both bind here) | |
| Config file | config.yaml, same file for standalone and container runs | |
| Config overrides | TEXT_TO_SPEECH__<SECTION>__<KEY>=<value> environment variables | |
| Container user | UID/GID 1000:1000 (baked into the image — do not change) | |
| Named volumes | text_to_speech_models, text_to_speech_storage, text_to_speech_cache | |
| Shipped default model | kokoro (ONNX runtime, CPU-only, runtime/device config ignored) — the docs' worked examples center on SpeechT5/Qwen, so confirm models.tts.name before assuming which model is active | |
| Device support | CPU/GPU work for Kokoro and SpeechT5; NPU is accepted as a config/request value but non-functional for every model — see model-and-device-config.md for the per-model failure behavior | |
| Known-broken models | Qwen3-TTS cannot run on any device (CPU/GPU/NPU) — fails at service startup due to a qwen-tts/transformers version conflict. SpeechT5 has no working PyTorch runtime (openvino only). Do not recommend deploying either gap as if it works. | |
| Health check | GET /health → {"status": "ok"} |
Reference Lookup
| Reference | When to read | |
|---|---|---|
| deployment-architecture.md | Compose service topology, volumes, /dev/dri passthrough, config load order, image build vs. pull | |
| model-and-device-config.md | Kokoro/SpeechT5/Qwen model matrix, runtime/device/precision support, known GPU precision caveat | |
| troubleshooting-deployment.md | Permission errors, GPU context failures, container name conflicts, slow first startup |
Example Prompts
| File | Covers | |
|---|---|---|
| examples-prompts/docker-compose-deploy.md | Standing up the service with Docker Compose and verifying health | |
| examples-prompts/switch-tts-model.md | Switching between Kokoro and SpeechT5 (and why Qwen3-TTS can't be switched to yet) | |
| examples-prompts/enable-gpu-acceleration.md | Configuring OpenVINO GPU device passthrough end-to-end | |
| examples-prompts/diagnose-qwen-dependency-failure.md | Recognizing the Qwen3-TTS/Parler-TTS startup dependency failures as known limitations |
Architecture Summary
Procedure: Deploying with Docker Compose
Read deployment-architecture.md first.
- From
microservices/text-to-speech/, reviewconfig.yamland set
models.tts.name/runtime/device/dtype as needed — this file is bind-mounted, so edits apply on docker compose restart.
- Copy
.env.exampleto.envand setREGISTRY,RELEASE_TAG, and (for
GPU) RENDER_GID.
- Start the service:
``bash docker compose pull # or: docker compose build docker compose up -d ``
- Verify:
``bash curl --noproxy '*' http://127.0.0.1:8011/health ``
[!IMPORTANT]The container always runs as UID/GID1000:1000. Named volumes areinitialized with that ownership on first run — do not overrideuser:inCompose, and do not reuse volumes created by an older root-only run (seethe troubleshooting reference for the reset procedure).
Procedure: Choosing a Model, Runtime, and Device
Read model-and-device-config.md first.
| Model | name value | Runtime | Device | Notes | |
|---|---|---|---|---|---|
| Kokoro | kokoro | always onnxruntime — runtime/device config ignored | CPU only | Shipped default; lightest-weight | |
| SpeechT5 | microsoft/speecht5_tts | openvino only (no working PyTorch implementation) | CPU or GPU | English only, 7 bundled voices, rejects instructions | |
| Qwen3-TTS | Qwen/Qwen3-TTS-12Hz-0.6B-CustomVoice | n/a | n/a | ⚠️ Cannot currently run on any device — fails at startup with a qwen-tts/transformers dependency conflict. Do not deploy this until resolved; see model-and-device-config.md. |
[!IMPORTANT]dtype: int4on integrated GPU is known to produce audible noise in thesynthesized output.fp16on GPU is validated and performs well afterwarmup. Do not recommendint4for a GPU deployment without calling thisout.
Procedure: Building From Source or Running Standalone
- Docker build:
docker compose build && docker compose up -d(tags the
same ${REGISTRY}/text-to-speech:${RELEASE_TAG} so later up calls reuse the local build), or docker build -t text-to-speech:local . directly.
- Standalone: install
libsndfile1, create a venv, `pip install -r
requirements.txt, then python main.py (default bind 127.0.0.1:8011; override with TEXT_TO_SPEECH_SERVER_HOST / TEXT_TO_SPEECH_SERVER_PORT`).
- Sanity-check imports before starting standalone if startup fails
mysteriously: ``bash python -c "import fastapi, openvino, soundfile; print('imports-ok')" ``
Procedure: Debugging a Deployment Failure
Read troubleshooting-deployment.md for the full catalog. Quick diagnosis checklist:
Common root causes, roughly in likelihood order:
- Leftover container with the same name from a previous run — remove it
explicitly rather than assuming Compose will resolve the conflict.
RENDER_GIDnot matching the host's actual render group GID — this is
host-specific and must never be hardcoded to a prior machine's value.
- Named volumes initialized by an earlier root-only run — permission denied
under /app/text-to-speech/storage/....
- GPU failure reported for SpeechT5 — test with
device: CPUfirst,
then device: GPU; these are genuinely independent validations.
- GPU/NPU failure reported for Qwen3-TTS — device isolation will not
help. Qwen3-TTS currently fails at startup with a dependency error (qwen-tts/transformers conflict) regardless of device; see model-and-device-config.md.
- Proxy not forwarded into the container — model downloads time out even
though they work from the host.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingmicroservices/text-to-speech/.github/skills/text-to-speech-dev/SKILL.md
Popularity
- Repository stars
- 174
- Repository forks
- 157
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/open-edge-platform/edge-ai-libraries/text-to-speech-dev)