[PR #2002] [MERGED] 🤩 Added custom openai tts models and role variables #20857

Closed
opened 2026-04-20 03:13:48 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/2002
Author: @Yanyutin753
Created: 5/6/2024
Status: Merged
Merged: 5/8/2024
Merged by: @tjbck

Base: devHead: addAudio


📝 Commits (3)

  • 761c66a 🤩 Added custom openai tts models and role variables
  • 5f7188b fix python test
  • 5d6517c update the name

📊 Changes

34 files changed (+89 additions, -7 deletions)

View changed files

📝 backend/apps/audio/main.py (+12 -0)
📝 backend/config.py (+2 -0)
📝 src/lib/apis/audio/index.ts (+5 -2)
📝 src/lib/apis/openai/index.ts (+3 -2)
📝 src/lib/components/chat/Messages/ResponseMessage.svelte (+2 -1)
📝 src/lib/components/chat/Settings/Audio.svelte (+37 -2)
📝 src/lib/i18n/locales/ar-BH/translation.json (+1 -0)
📝 src/lib/i18n/locales/bg-BG/translation.json (+1 -0)
📝 src/lib/i18n/locales/bn-BD/translation.json (+1 -0)
📝 src/lib/i18n/locales/ca-ES/translation.json (+1 -0)
📝 src/lib/i18n/locales/de-DE/translation.json (+1 -0)
📝 src/lib/i18n/locales/dg-DG/translation.json (+1 -0)
📝 src/lib/i18n/locales/en-GB/translation.json (+1 -0)
📝 src/lib/i18n/locales/en-US/translation.json (+1 -0)
📝 src/lib/i18n/locales/es-ES/translation.json (+1 -0)
📝 src/lib/i18n/locales/fa-IR/translation.json (+1 -0)
📝 src/lib/i18n/locales/fr-CA/translation.json (+1 -0)
📝 src/lib/i18n/locales/fr-FR/translation.json (+1 -0)
📝 src/lib/i18n/locales/it-IT/translation.json (+1 -0)
📝 src/lib/i18n/locales/ja-JP/translation.json (+1 -0)

...and 14 more files

📄 Description

Pull Request Checklist

Description

🤩 Added custom openai tts models and role environment variables

#1978

Variable Name Description
AUDIO_OPENAI_API_MODEL This variable is used to select which OpenAI Text to Speech (TTS) model to use. tts-1-hd and tts-1
AUDIO_OPENAI_API_VOICE This variable is used to select which OpenAI synthetic voice to use. The OpenAI API offers a variety of voices, including different genders and accents from different regions, to cater to various use cases.

Changelog Entry

Added

AUDIO_OPENAI_API_MODEL and AUDIO_OPENAI_API_SPEAKER


Additional Information

Self test passed

image

image


🔄 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/open-webui/open-webui/pull/2002 **Author:** [@Yanyutin753](https://github.com/Yanyutin753) **Created:** 5/6/2024 **Status:** ✅ Merged **Merged:** 5/8/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `addAudio` --- ### 📝 Commits (3) - [`761c66a`](https://github.com/open-webui/open-webui/commit/761c66a8d85b7224b50f374b8ce35b205f5ce3f6) 🤩 Added custom openai tts models and role variables - [`5f7188b`](https://github.com/open-webui/open-webui/commit/5f7188b4804d713161cf772a20ecfb459040392e) fix python test - [`5d6517c`](https://github.com/open-webui/open-webui/commit/5d6517c537338723d360461768c61010c836de72) update the name ### 📊 Changes **34 files changed** (+89 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `backend/apps/audio/main.py` (+12 -0) 📝 `backend/config.py` (+2 -0) 📝 `src/lib/apis/audio/index.ts` (+5 -2) 📝 `src/lib/apis/openai/index.ts` (+3 -2) 📝 `src/lib/components/chat/Messages/ResponseMessage.svelte` (+2 -1) 📝 `src/lib/components/chat/Settings/Audio.svelte` (+37 -2) 📝 `src/lib/i18n/locales/ar-BH/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/bg-BG/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/bn-BD/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/ca-ES/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/de-DE/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/dg-DG/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/en-GB/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/en-US/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/es-ES/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/fa-IR/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/fr-CA/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/fr-FR/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/it-IT/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/ja-JP/translation.json` (+1 -0) _...and 14 more files_ </details> ### 📄 Description ## Pull Request Checklist ## Description 🤩 Added custom openai tts models and role environment variables #1978 | Variable Name | Description | | --- | --- | | `AUDIO_OPENAI_API_MODEL` | This variable is used to select which OpenAI Text to Speech (TTS) model to use. `tts-1-hd` and `tts-1` | | `AUDIO_OPENAI_API_VOICE` | This variable is used to select which OpenAI synthetic voice to use. The OpenAI API offers a variety of voices, including different genders and accents from different regions, to cater to various use cases. | --- ### Changelog Entry ### Added `AUDIO_OPENAI_API_MODEL` and `AUDIO_OPENAI_API_SPEAKER` --- ### Additional Information Self test passed ![image](https://github.com/open-webui/open-webui/assets/132346501/a8384373-26ce-494e-8eda-1c98d1c8a180) ![image](https://github.com/open-webui/open-webui/assets/132346501/160c2a07-6946-474b-a614-fb6b38f88e89) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 03:13:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#20857