{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "hexgrad-kokoro--speed-up-kokoro-on-apple-silicon",
 "repo": "hexgrad/kokoro",
 "repo_url": "https://github.com/hexgrad/kokoro",
 "repo_slug": "hexgrad-kokoro",
 "title": "Speed up Kokoro on an Apple Silicon Mac",
 "page_title": "How to speed up Kokoro on an Apple Silicon Mac with Kokoro",
 "summary": "Enable MPS fallback so Kokoro uses the Mac GPU.",
 "who": "A Mac user generating long audio locally.",
 "problem": "CPU-only generation is slow for long scripts.",
 "outcome": "Faster local generation on M1 to M4 Macs.",
 "steps": [
  "Install Kokoro with pip",
  "Write your Kokoro script, for example run-your-kokoro-script.py",
  "Run it with `PYTORCH_ENABLE_MPS_FALLBACK=1 python run-your-kokoro-script.py`",
  "If dependencies conflict, use the conda environment.yml from the README"
 ],
 "agent_prompt": "Using hexgrad/kokoro on my Mac, set up a script and run it with `PYTORCH_ENABLE_MPS_FALLBACK=1 python run-your-kokoro-script.py`, then compare timing with and without the variable.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Beginner",
 "time": "15 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": [
  {
   "tag": "platform",
   "notice": "This tip applies only to Apple Silicon Macs."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/hexgrad-kokoro/speed-up-kokoro-on-apple-silicon/",
 "md": "https://dedupedai.com/use-cases/hexgrad-kokoro/speed-up-kokoro-on-apple-silicon/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--speed-up-kokoro-on-apple-silicon.json",
 "api_version": "v1"
}
