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
🔄 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


---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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:
dev← Head:addAudio📝 Commits (3)
761c66a🤩 Added custom openai tts models and role variables5f7188bfix python test5d6517cupdate 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
AUDIO_OPENAI_API_MODELtts-1-hdandtts-1AUDIO_OPENAI_API_VOICEChangelog Entry
Added
AUDIO_OPENAI_API_MODELandAUDIO_OPENAI_API_SPEAKERAdditional Information
Self test passed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.