[PR #5679] [MERGED] Kokoro TTS provider #5526

Closed
opened 2026-06-05 15:21:38 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5679
Author: @shatfield4
Created: 5/21/2026
Status: Merged
Merged: 6/1/2026
Merged by: @timothycarambat

Base: masterHead: feat/tts-kokoro-provider


📝 Commits (7)

  • c885e31 add kokoro tts provider
  • eef0bf9 fix api key fallback + add try/catch around voice fetch
  • d2e425a Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into feat/tts-kokoro-provider
  • cab314e merge upstream
  • ee2e440 fix order
  • ef3aecd update order and endpoint parsing
  • 89802eb remove log

📊 Changes

11 files changed (+308 additions, -1 deletions)

View changed files

📝 docker/.env.example (+6 -0)
frontend/src/components/TextToSpeech/KokoroOptions/index.jsx (+168 -0)
📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/index.jsx (+1 -0)
frontend/src/media/ttsproviders/kokoro.png (+0 -0)
📝 frontend/src/pages/GeneralSettings/AudioPreference/tts.jsx (+10 -0)
📝 server/.env.example (+6 -0)
📝 server/models/systemSettings.js (+4 -0)
📝 server/utils/TextToSpeech/index.js (+3 -0)
server/utils/TextToSpeech/kokoro/index.js (+50 -0)
📝 server/utils/helpers/customModels.js (+45 -1)
📝 server/utils/helpers/updateENV.js (+15 -0)

📄 Description

Pull Request Type

  • feat (New feature)
  • 🐛 fix (Bug fix)
  • ♻️ refactor (Code refactoring without changing behavior)
  • 💄 style (UI style changes)
  • 🔨 chore (Build, CI, maintenance)
  • 📝 docs (Documentation updates)

Relevant Issues

resolves #5678

Description

  • Implements Kokoro as a TTS provider
  • Works with Kokoro-FastAPI since this is the easier way for users to get it up and running quickly with the Kokoro model in an OpenAI compatible API endpoint

Visuals (if applicable)

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated (if applicable)
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/5679 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 5/21/2026 **Status:** ✅ Merged **Merged:** 6/1/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `feat/tts-kokoro-provider` --- ### 📝 Commits (7) - [`c885e31`](https://github.com/Mintplex-Labs/anything-llm/commit/c885e31b4d1ab27adad0d8c4d9bd2ad65d3a11ff) add kokoro tts provider - [`eef0bf9`](https://github.com/Mintplex-Labs/anything-llm/commit/eef0bf93d85f95a84c74dcc69055e10cc89e9c0b) fix api key fallback + add try/catch around voice fetch - [`d2e425a`](https://github.com/Mintplex-Labs/anything-llm/commit/d2e425aa5bb5b8c142eeb56a67ad9f5dd57f773e) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into feat/tts-kokoro-provider - [`cab314e`](https://github.com/Mintplex-Labs/anything-llm/commit/cab314ec80b32745427a0e429a78860efa9d1704) merge upstream - [`ee2e440`](https://github.com/Mintplex-Labs/anything-llm/commit/ee2e440331989516840e6951981522dafd85573b) fix order - [`ef3aecd`](https://github.com/Mintplex-Labs/anything-llm/commit/ef3aecd85043f98d2c095b58e1f96356e60e8000) update order and endpoint parsing - [`89802eb`](https://github.com/Mintplex-Labs/anything-llm/commit/89802eb02291194709b23c2138aa48fa963ed288) remove log ### 📊 Changes **11 files changed** (+308 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docker/.env.example` (+6 -0) ➕ `frontend/src/components/TextToSpeech/KokoroOptions/index.jsx` (+168 -0) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/index.jsx` (+1 -0) ➕ `frontend/src/media/ttsproviders/kokoro.png` (+0 -0) 📝 `frontend/src/pages/GeneralSettings/AudioPreference/tts.jsx` (+10 -0) 📝 `server/.env.example` (+6 -0) 📝 `server/models/systemSettings.js` (+4 -0) 📝 `server/utils/TextToSpeech/index.js` (+3 -0) ➕ `server/utils/TextToSpeech/kokoro/index.js` (+50 -0) 📝 `server/utils/helpers/customModels.js` (+45 -1) 📝 `server/utils/helpers/updateENV.js` (+15 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat (New feature) - [ ] 🐛 fix (Bug fix) - [ ] ♻️ refactor (Code refactoring without changing behavior) - [ ] 💄 style (UI style changes) - [ ] 🔨 chore (Build, CI, maintenance) - [ ] 📝 docs (Documentation updates) ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #5678 ### Description <!-- Describe the changes in this PR that are impactful to the repo. What problem does it solve? --> - Implements Kokoro as a TTS provider - Works with [Kokoro-FastAPI](https://github.com/remsky/Kokoro-FastAPI) since this is the easier way for users to get it up and running quickly with the Kokoro model in an OpenAI compatible API endpoint ### Visuals (if applicable) <!-- Add screenshots or screen recordings to demonstrate the changes, especially for UI updates. --> ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated (if applicable) - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 15:21:38 -04:00
yindo closed this issue 2026-06-05 15:21:38 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5526