[PR #1394] [MERGED] Add Speech-to-text and Text-to-speech providers #3668

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

📋 Pull Request Information

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

Base: masterHead: stt-and-tts-support


📝 Commits (6)

  • 40c214a Add Speech-to-text and Text-to-speech providers
  • 0c660a2 add files and update comment
  • eaf9481 update comments
  • 80fe58a Merge branch 'master' into stt-and-tts-support
  • e4aba9e patch: bad playerRef check
  • 0d0cba3 Merge branch 'stt-and-tts-support' of github.com:Mintplex-Labs/anything-llm into stt-and-tts-support

📊 Changes

33 files changed (+1234 additions, -68 deletions)

View changed files

📝 .vscode/settings.json (+1 -0)
📝 docker/.env.example (+13 -0)
📝 frontend/package.json (+1 -0)
📝 frontend/src/App.jsx (+7 -0)
📝 frontend/src/components/SettingsSidebar/index.jsx (+9 -0)
frontend/src/components/SpeechToText/BrowserNative/index.jsx (+9 -0)
frontend/src/components/TextToSpeech/BrowserNative/index.jsx (+9 -0)
frontend/src/components/TextToSpeech/ElevenLabsOptions/index.jsx (+107 -0)
frontend/src/components/TextToSpeech/OpenAiOptions/index.jsx (+45 -0)
frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/asyncTts.jsx (+94 -0)
frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/index.jsx (+23 -0)
frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/native.jsx (+61 -0)
📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/index.jsx (+3 -62)
frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SpeechToText/index.jsx (+82 -0)
📝 frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx (+5 -0)
frontend/src/media/ttsproviders/elevenlabs.png (+0 -0)
📝 frontend/src/models/system.js (+1 -1)
📝 frontend/src/models/workspace.js (+16 -1)
frontend/src/pages/GeneralSettings/AudioPreference/index.jsx (+45 -0)
frontend/src/pages/GeneralSettings/AudioPreference/stt.jsx (+191 -0)

...and 13 more files

📄 Description

Pull Request Type

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

Relevant Issues

connect #1035

What is in this change?

Add support for speech-to-text and text-to-speech providers. Focusing on leveraging the built-in browser native APIs and then relying on third parties.

Speech to text:
Native

Text to speech:
Native
OpenAI TTS
ElevenLabs TTS

Additional Information

The native functionality for both STT and TTS will need to be removed for desktop because the APIs no longer exist.

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/1394 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 5/14/2024 **Status:** ✅ Merged **Merged:** 5/14/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `stt-and-tts-support` --- ### 📝 Commits (6) - [`40c214a`](https://github.com/Mintplex-Labs/anything-llm/commit/40c214ae574c9da152826b5748322f9938d16001) Add Speech-to-text and Text-to-speech providers - [`0c660a2`](https://github.com/Mintplex-Labs/anything-llm/commit/0c660a23a00d1300430eb2f6bc9cbe3a67a9a213) add files and update comment - [`eaf9481`](https://github.com/Mintplex-Labs/anything-llm/commit/eaf9481e1f6379558d218a93f787f169040d25ca) update comments - [`80fe58a`](https://github.com/Mintplex-Labs/anything-llm/commit/80fe58a79d24a0ade9d3b4ae5edae96846006ce8) Merge branch 'master' into stt-and-tts-support - [`e4aba9e`](https://github.com/Mintplex-Labs/anything-llm/commit/e4aba9ec082ba493ea74ee16d83542447ea1390c) patch: bad playerRef check - [`0d0cba3`](https://github.com/Mintplex-Labs/anything-llm/commit/0d0cba33146eea1ec7cb638993e36a0cc843d748) Merge branch 'stt-and-tts-support' of github.com:Mintplex-Labs/anything-llm into stt-and-tts-support ### 📊 Changes **33 files changed** (+1234 additions, -68 deletions) <details> <summary>View changed files</summary> 📝 `.vscode/settings.json` (+1 -0) 📝 `docker/.env.example` (+13 -0) 📝 `frontend/package.json` (+1 -0) 📝 `frontend/src/App.jsx` (+7 -0) 📝 `frontend/src/components/SettingsSidebar/index.jsx` (+9 -0) ➕ `frontend/src/components/SpeechToText/BrowserNative/index.jsx` (+9 -0) ➕ `frontend/src/components/TextToSpeech/BrowserNative/index.jsx` (+9 -0) ➕ `frontend/src/components/TextToSpeech/ElevenLabsOptions/index.jsx` (+107 -0) ➕ `frontend/src/components/TextToSpeech/OpenAiOptions/index.jsx` (+45 -0) ➕ `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/asyncTts.jsx` (+94 -0) ➕ `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/index.jsx` (+23 -0) ➕ `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/native.jsx` (+61 -0) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/index.jsx` (+3 -62) ➕ `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SpeechToText/index.jsx` (+82 -0) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx` (+5 -0) ➕ `frontend/src/media/ttsproviders/elevenlabs.png` (+0 -0) 📝 `frontend/src/models/system.js` (+1 -1) 📝 `frontend/src/models/workspace.js` (+16 -1) ➕ `frontend/src/pages/GeneralSettings/AudioPreference/index.jsx` (+45 -0) ➕ `frontend/src/pages/GeneralSettings/AudioPreference/stt.jsx` (+191 -0) _...and 13 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" --> connect #1035 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> Add support for speech-to-text and text-to-speech providers. Focusing on leveraging the built-in browser native APIs and then relying on third parties. Speech to text: Native Text to speech: Native OpenAI TTS ElevenLabs TTS ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> The native functionality for both STT and TTS will need to be removed for desktop because the APIs no longer exist. ### 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:15 -05:00
yindo closed this issue 2026-02-22 18:34:15 -05:00
yindo changed title from [PR #1394] Add Speech-to-text and Text-to-speech providers to [PR #1394] [MERGED] Add Speech-to-text and Text-to-speech providers 2026-06-05 15:14:36 -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#3668