[PR #2052] [MERGED] Add piperTTS in-browser text-to-speech #3866

Closed
opened 2026-02-22 18:34:39 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/2052
Author: @timothycarambat
Created: 8/5/2024
Status: Merged
Merged: 8/7/2024
Merged by: @timothycarambat

Base: masterHead: pipertts-support


📝 Commits (10+)

  • 686c8c1 Add piperTTS in-browser text-to-speech
  • 14355f3 update vite config
  • dcc2416 Add voice default + change prod public URL
  • 698d5c3 uncheck file
  • 2bc3987 Error handling
  • 2b2b119 bump package
  • 50df2d5 Remove pre-packed WASM - will not support offline first solution for docker
  • 1739342 attach TTSProvider telem
  • 31df75d Merge branch 'master' into pipertts-support
  • 7393645 Merge branch 'master' into pipertts-support

📊 Changes

21 files changed (+736 additions, -6 deletions)

View changed files

📝 .github/workflows/dev-build.yaml (+1 -1)
📝 README.md (+1 -0)
📝 frontend/package.json (+2 -0)
frontend/src/components/TextToSpeech/PiperTTSOptions/index.jsx (+219 -0)
📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/index.jsx (+18 -3)
frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/piperTTS.jsx (+90 -0)
frontend/src/media/ttsproviders/piper.png (+0 -0)
📝 frontend/src/pages/GeneralSettings/AudioPreference/tts.jsx (+9 -0)
frontend/src/utils/piperTTS/index.js (+138 -0)
frontend/src/utils/piperTTS/worker.js (+94 -0)
📝 frontend/vite.config.js (+10 -1)
📝 frontend/yarn.lock (+125 -0)
📝 server/endpoints/api/openai/index.js (+2 -0)
📝 server/endpoints/api/workspace/index.js (+3 -0)
📝 server/endpoints/api/workspaceThread/index.js (+3 -0)
📝 server/endpoints/chat.js (+2 -0)
📝 server/endpoints/workspaceThreads.js (+1 -0)
📝 server/endpoints/workspaces.js (+1 -0)
📝 server/models/documents.js (+2 -0)
📝 server/models/systemSettings.js (+3 -0)

...and 1 more files

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #xxx

What is in this change?

  • Adds native browser support for PiperTTS the runs fully on-client for each user using web-workers.

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • 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/2052 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 8/5/2024 **Status:** ✅ Merged **Merged:** 8/7/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `pipertts-support` --- ### 📝 Commits (10+) - [`686c8c1`](https://github.com/Mintplex-Labs/anything-llm/commit/686c8c1994695f8aa133a703ec2fbf66a5d8f5ec) Add piperTTS in-browser text-to-speech - [`14355f3`](https://github.com/Mintplex-Labs/anything-llm/commit/14355f39b7b869b4da85b128e2b47c14edcc045a) update vite config - [`dcc2416`](https://github.com/Mintplex-Labs/anything-llm/commit/dcc241617c849405ae9d11ebcc1dc062ce61ea9d) Add voice default + change prod public URL - [`698d5c3`](https://github.com/Mintplex-Labs/anything-llm/commit/698d5c3a4c3828771bb41bc34323e33d440943ac) uncheck file - [`2bc3987`](https://github.com/Mintplex-Labs/anything-llm/commit/2bc3987def4d052535a03860dbdc2a696d5c5346) Error handling - [`2b2b119`](https://github.com/Mintplex-Labs/anything-llm/commit/2b2b119ed61166626aaf5899712ad2e975b3da00) bump package - [`50df2d5`](https://github.com/Mintplex-Labs/anything-llm/commit/50df2d5659a64a290fd25673fc4a4ca5e204371e) Remove pre-packed WASM - will not support offline first solution for docker - [`1739342`](https://github.com/Mintplex-Labs/anything-llm/commit/1739342affeccdbe767954407adbd9a6252e37e1) attach TTSProvider telem - [`31df75d`](https://github.com/Mintplex-Labs/anything-llm/commit/31df75de008274bda730f4a2150e81c61aea0b16) Merge branch 'master' into pipertts-support - [`7393645`](https://github.com/Mintplex-Labs/anything-llm/commit/7393645d98caa2ac47923668c651521c13d89cca) Merge branch 'master' into pipertts-support ### 📊 Changes **21 files changed** (+736 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/dev-build.yaml` (+1 -1) 📝 `README.md` (+1 -0) 📝 `frontend/package.json` (+2 -0) ➕ `frontend/src/components/TextToSpeech/PiperTTSOptions/index.jsx` (+219 -0) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/index.jsx` (+18 -3) ➕ `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/piperTTS.jsx` (+90 -0) ➕ `frontend/src/media/ttsproviders/piper.png` (+0 -0) 📝 `frontend/src/pages/GeneralSettings/AudioPreference/tts.jsx` (+9 -0) ➕ `frontend/src/utils/piperTTS/index.js` (+138 -0) ➕ `frontend/src/utils/piperTTS/worker.js` (+94 -0) 📝 `frontend/vite.config.js` (+10 -1) 📝 `frontend/yarn.lock` (+125 -0) 📝 `server/endpoints/api/openai/index.js` (+2 -0) 📝 `server/endpoints/api/workspace/index.js` (+3 -0) 📝 `server/endpoints/api/workspaceThread/index.js` (+3 -0) 📝 `server/endpoints/chat.js` (+2 -0) 📝 `server/endpoints/workspaceThreads.js` (+1 -0) 📝 `server/endpoints/workspaces.js` (+1 -0) 📝 `server/models/documents.js` (+2 -0) 📝 `server/models/systemSettings.js` (+3 -0) _...and 1 more files_ </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #xxx ### What is in this change? - Adds native browser support for [PiperTTS](https://github.com/rhasspy/piper) the runs fully on-client for each user using web-workers. <!-- Describe the changes in this PR that are impactful to the repo. --> ### 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 - [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-02-22 18:34:39 -05:00
yindo closed this issue 2026-02-22 18:34:39 -05:00
yindo changed title from [PR #2052] Add piperTTS in-browser text-to-speech to [PR #2052] [MERGED] Add piperTTS in-browser text-to-speech 2026-06-05 15:15:39 -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#3866