{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "hexgrad-kokoro--generate-speech-in-other-languages-with-kokoro",
 "repo": "hexgrad/kokoro",
 "repo_url": "https://github.com/hexgrad/kokoro",
 "repo_slug": "hexgrad-kokoro",
 "title": "Generate speech in Spanish, French, Hindi or Japanese",
 "page_title": "How to generate speech in Spanish, French, Hindi or Japanese with Kokoro",
 "summary": "Switch the pipeline's lang_code to voice text in other supported languages.",
 "who": "A teacher or creator making audio in several languages.",
 "problem": "Many open TTS models only speak English well.",
 "outcome": "Audio in the language you pick.",
 "steps": [
  "Install Kokoro and espeak-ng as in the README",
  "Pick a lang_code: e for Spanish, f for French, h for Hindi, j for Japanese, z for Mandarin",
  "For Japanese or Mandarin install `pip install misaki[ja]` or `pip install misaki[zh]`",
  "Create the KPipeline with that code and generate as usual"
 ],
 "agent_prompt": "With hexgrad/kokoro, generate <my paragraph> in Spanish and French using KPipeline with lang_code e and f, and save each language to its own WAV.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Beginner",
 "time": "20 minutes",
 "basis": "readme",
 "caveat": "This card is written from the hexgrad/kokoro README, not from a test run by Deduped. Before you start, make sure you have Python with pip. Check the repo for newer instructions before you rely on these steps.",
 "category": "Content",
 "tags": [
  "Content"
 ],
 "lang": "javascript",
 "requirements": [
  "Python with pip (the README conda file uses Python 3.9)",
  "espeak-ng installed for fallback and some languages",
  "Optional: an Apple Silicon Mac for MPS acceleration"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/hexgrad-kokoro/generate-speech-in-other-languages-with-kokoro/",
 "md": "https://dedupedai.com/use-cases/hexgrad-kokoro/generate-speech-in-other-languages-with-kokoro/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/hexgrad-kokoro--generate-speech-in-other-languages-with-kokoro.json",
 "api_version": "v1"
}
