{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "nari-labs-nari-qwen3-tts--stream-live-text-to-speech-over-websocket",
 "repo": "nari-labs/nari-qwen3-tts",
 "repo_url": "https://github.com/nari-labs/nari-qwen3-tts",
 "repo_slug": "nari-labs-nari-qwen3-tts",
 "title": "Speak live text as it arrives over WebSocket",
 "page_title": "How to speak live text as it arrives over WebSocket with Nari Qwen3 TTS",
 "summary": "Stream incremental text to the WebSocket speech endpoint so audio starts before the full sentence exists.",
 "who": "An engineer building a voice assistant or live captioning tool that produces text token by token.",
 "problem": "Waiting for complete text before generating speech adds delay to every spoken reply.",
 "outcome": "A client that sends text increments over WS /v1/audio/speech/ws and plays audio as it is returned.",
 "steps": [
  "Start the server and confirm readiness with `curl --fail http://127.0.0.1:8000/ready`.",
  "Open docs/websocket.md in the repo to read the live-text protocol and the client example.",
  "Connect a WebSocket client to the `WS /v1/audio/speech/ws` path on the running server.",
  "Send text in increments as the source produces it and play back the audio frames as they arrive."
 ],
 "agent_prompt": "In the nari-labs/nari-qwen3-tts repo, read docs/websocket.md and write a client that connects to ws://127.0.0.1:8000/v1/audio/speech/ws and sends the text from <text-source> in increments. Expected output: audio chunks received while text is still being sent. Verify that the client handles the protocol described in the docs without guessing message formats.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "2 hours",
 "basis": "readme",
 "caveat": "The README names the WebSocket path but leaves the message format to docs/websocket.md, so the client must follow that document.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "A Linux x86_64 host with an NVIDIA H100 GPU",
  "NVIDIA Container Toolkit and a driver compatible with CUDA 13.0 (for Docker)",
  "Docker, or uv with Python and the system packages build-essential, libsndfile1, and sox",
  "A Hugging Face token (HF_TOKEN) if the model files need to be downloaded"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/nari-labs-nari-qwen3-tts/stream-live-text-to-speech-over-websocket/",
 "md": "https://dedupedai.com/use-cases/nari-labs-nari-qwen3-tts/stream-live-text-to-speech-over-websocket/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/nari-labs-nari-qwen3-tts--stream-live-text-to-speech-over-websocket.json",
 "api_version": "v1"
}
