{"id":43160973,"url":"https://github.com/eduardolat/kokoro-web","last_synced_at":"2026-02-01T01:19:37.184Z","repository":{"id":276702565,"uuid":"929943786","full_name":"eduardolat/kokoro-web","owner":"eduardolat","description":"🔊 Kokoro Web: Free AI text-to-speech, online or self-hosted, OpenAI compatible!","archived":false,"fork":false,"pushed_at":"2025-03-16T05:09:11.000Z","size":4065,"stargazers_count":162,"open_issues_count":0,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T05:24:44.496Z","etag":null,"topics":["ai","kokoro","kokoro-82m","kokoro-tts","machine-learning","text-to-speech","tts","voice","voice-generation"],"latest_commit_sha":null,"homepage":"https://voice-generator.pages.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eduardolat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-09T18:54:22.000Z","updated_at":"2025-03-16T05:07:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5e19690-54a3-49b3-964d-d40d7cfd4504","html_url":"https://github.com/eduardolat/kokoro-web","commit_stats":null,"previous_names":["eduardolat/kokoro-web"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/eduardolat/kokoro-web","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardolat%2Fkokoro-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardolat%2Fkokoro-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardolat%2Fkokoro-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardolat%2Fkokoro-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eduardolat","download_url":"https://codeload.github.com/eduardolat/kokoro-web/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardolat%2Fkokoro-web/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28963557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T00:42:38.011Z","status":"ssl_error","status_checked_at":"2026-02-01T00:42:35.920Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","kokoro","kokoro-82m","kokoro-tts","machine-learning","text-to-speech","tts","voice","voice-generation"],"created_at":"2026-02-01T01:19:36.711Z","updated_at":"2026-02-01T01:19:37.169Z","avatar_url":"https://github.com/eduardolat.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/eduardolat/kokoro-web/377c69703033c21101da7639ecd8b878c417cb94/static/logo.png\" alt=\"Kokoro Web Logo\" width=\"100\" height=\"100\" style=\"border-radius: 20%;\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e🔊 Kokoro Web - Free AI Text to Speech\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003eA powerful, browser-based AI voice generator that lets you create natural-sounding voices without installing anything.\u003c/b\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  Use it directly in your browser or self-host it for your own applications with OpenAI API compatibility!\n\u003c/p\u003e\n\n## 🎬 Demo\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/eduardolat/kokoro-web/377c69703033c21101da7639ecd8b878c417cb94/static/demo.gif\" alt=\"Kokoro Web Demo\" width=\"100%\" style=\"max-width: 800px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003eTry it now:\u003c/b\u003e \u003ca href=\"https://voice-generator.pages.dev\"\u003ehttps://voice-generator.pages.dev\u003c/a\u003e\n\u003c/p\u003e\n\n## ✨ Key Features\n\n- **Zero Installation** - Works directly in your browser, no downloads needed\n- **Self Hostable** - If you need an OpenAI Compatible API\n- **Free \u0026 Open Source** - 100% free for personal and commercial use\n- **Multiple Languages** - Support for various language accents\n- **Voice Customization** - Simple and advanced voice configuration options\n- **WebGPU Acceleration** - Utilize your GPU for faster generation in supported browsers\n\n## 🧠 Model\n\nKokoro Web is powered by [hexgrad/Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M), an open-weight 82 million parameter Text-to-Speech model available on Hugging Face.\n\n\u003e Despite its lightweight architecture, it delivers comparable quality to larger models while being significantly faster and more cost-efficient. With Apache-licensed weights, Kokoro can be deployed anywhere from production environments to personal projects.\n\nThis is one of the top-ranked models in [TTS Arena](https://huggingface.co/spaces/TTS-AGI/TTS-Arena), just behind ElevenLabs.\n\nSpecial thanks to the model creators for making this technology accessible.\n\n## 🚀 Usage\n\n### Option 1: Use it online\n\nVisit the hosted version at [voice-generator.pages.dev](https://voice-generator.pages.dev) and start generating voices instantly!\n\n### Option 2: Self-host with Docker\n\nThe self-hosted version includes an OpenAI-compatible API that works as a drop-in replacement for applications using [OpenAI's text-to-speech API](https://platform.openai.com/docs/guides/text-to-speech).\n\n```yaml\nservices:\n  kokoro-web:\n    image: ghcr.io/eduardolat/kokoro-web:latest\n    ports:\n      - \"3000:3000\"\n    environment:\n      - KW_SECRET_API_KEY=your-api-key\n    volumes:\n      - ./kokoro-cache:/kokoro/cache  # Cache downloaded models and voices\n    restart: unless-stopped\n```\n\nYou can adjust the `compose.yaml` according to your needs or use docker run directly.\n\nThen access the web UI at http://localhost:3000 and the API at http://localhost:3000/api/v1/index.html\n\n## ⚙️ Environment variables\n\n- **KW_SECRET_API_KEY** - Your API key for authentication. If left blank, authentication will not be activated\n\n- **KW_PUBLIC_NO_TRACK** - Opt out of anonymous usage analytics\n\n## 🔌 API Integration\n\nKokoro Web provides an OpenAI-compatible API that works as a drop-in replacement for applications using OpenAI's text-to-speech service:\n\n```javascript\nimport fs from \"fs\";\nimport path from \"path\";\nimport OpenAI from \"openai\";\n\nconst openai = new OpenAI({\n  baseURL: 'http://your-kokoro-host/api/v1',\n  apiKey: 'your-kokoro-api-key',\n});\nconst speechFile = path.resolve(\"./speech.mp3\");\n\nconst mp3 = await openai.audio.speech.create({\n  model: \"model_q8f16\",\n  voice: \"af_heart\",\n  input: \"Today is a wonderful day to build something people love!\",\n});\n\nconst buffer = Buffer.from(await mp3.arrayBuffer());\nawait fs.promises.writeFile(speechFile, buffer);\n```\n\n## 📜 License\n\nKokoro Web is [MIT Licensed](LICENSE)\n\n---\n\n\u003cp align=\"center\"\u003e\n  Made with ❤️ by\n  \u003ca href=\"https://eduardo.lat?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=kokoro-web\"\u003eEduardo Lat\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduardolat%2Fkokoro-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feduardolat%2Fkokoro-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduardolat%2Fkokoro-web/lists"}