[PR #2466] [CLOSED] Update OpenAI TTS config to allow a custom BaseURL allowing for any TTS engine with a compatible API #4000

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/2466
Author: @phazei
Created: 10/13/2024
Status: Closed

Base: masterHead: tts-openAI-compatible-endpoints


📝 Commits (1)

  • bdf3fb8 Update OpenAI TTS config to allow a custom BaseURL

📊 Changes

7 files changed (+75 additions, -2 deletions)

View changed files

📝 docker/.env.example (+1 -0)
📝 frontend/src/components/TextToSpeech/OpenAiOptions/index.jsx (+57 -0)
📝 frontend/vite.config.js (+3 -2)
📝 server/.env.example (+1 -0)
📝 server/models/systemSettings.js (+1 -0)
📝 server/utils/TextToSpeech/openAi/index.js (+1 -0)
📝 server/utils/helpers/updateENV.js (+11 -0)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #xxx

What is in this change?

This adds an input field for a custom BaseURL for the OpenAI TTS endpoint when selecting OpenAI as a TTS provider.

Since OpenAI has become an industry standard many tools have taken to mirroring their API for ease of integration.

With this change it allows for a much richer choice of options to use as a TTS provider.

I tested it using AllTalk_TTS's OpenAI speech endpoint and it works wonderfully.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes

  • [ x] Relevant documentation has been updated
    couldn't find any relevant docs, but it is notated in the env comments

  • [ x] I have tested my code functionality

  • [ x] Docker build succeeds locally
    In order to debug this, I needed to get the frontend/server/collector all working since the docker takes a VERY long time on the production-build 3/3 chown step. There has got to be a way to speed that up. Also, when running the servers independently, it doesn't save the config in any .env file so with every restart I had to set it up again, don't know what I missed there. I was also running it under WSL ubuntu, so that was it's own pita, my dev machine is a MBP, but only my PC can run the models :/


🔄 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/2466 **Author:** [@phazei](https://github.com/phazei) **Created:** 10/13/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `tts-openAI-compatible-endpoints` --- ### 📝 Commits (1) - [`bdf3fb8`](https://github.com/Mintplex-Labs/anything-llm/commit/bdf3fb82ec0291ecb2c7a02cb8f6a220889060f2) Update OpenAI TTS config to allow a custom BaseURL ### 📊 Changes **7 files changed** (+75 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docker/.env.example` (+1 -0) 📝 `frontend/src/components/TextToSpeech/OpenAiOptions/index.jsx` (+57 -0) 📝 `frontend/vite.config.js` (+3 -2) 📝 `server/.env.example` (+1 -0) 📝 `server/models/systemSettings.js` (+1 -0) 📝 `server/utils/TextToSpeech/openAi/index.js` (+1 -0) 📝 `server/utils/helpers/updateENV.js` (+11 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues resolves #xxx ### What is in this change? This adds an input field for a custom BaseURL for the OpenAI TTS endpoint when selecting OpenAI as a TTS provider. Since OpenAI has become an industry standard many tools have taken to mirroring their API for ease of integration. With this change it allows for a much richer choice of options to use as a TTS provider. I tested it using [AllTalk_TTS's OpenAI speech endpoint](https://github.com/erew123/alltalk_tts/wiki/API-%E2%80%90-OpenAI-V1-Speech-Compatible-Endpoint) and it works wonderfully. ### Developer Validations <!-- All of the applicable items should be checked. --> - [ ] I ran `yarn lint` from the root of the repo & committed changes - [ x] Relevant documentation has been updated couldn't find any relevant docs, but it is notated in the env comments - [ x] I have tested my code functionality - [ x] Docker build succeeds locally In order to debug this, I needed to get the frontend/server/collector all working since the docker takes a VERY long time on the production-build 3/3 chown step. There has got to be a way to speed that up. Also, when running the servers independently, it doesn't save the config in any .env file so with every restart I had to set it up again, don't know what I missed there. I was also running it under WSL ubuntu, so that was it's own pita, my dev machine is a MBP, but only my PC can run the models :/ --- <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:56 -05:00
yindo closed this issue 2026-02-22 18:34:56 -05:00
yindo changed title from [PR #2466] Update OpenAI TTS config to allow a custom BaseURL allowing for any TTS engine with a compatible API to [PR #2466] [CLOSED] Update OpenAI TTS config to allow a custom BaseURL allowing for any TTS engine with a compatible API 2026-06-05 15:16:17 -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#4000