[PR #3119] [CLOSED] **WIP** feat: add alltalk tts support #7988

Closed
opened 2025-11-11 17:41:59 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/3119
Author: @acceleratorlastorder
Created: 6/13/2024
Status: Closed

Base: mainHead: feature/add_alltalk_tts


📝 Commits (10+)

  • cf187f2 Add API URL configuration for AllTalk audio provider
  • 660ea44 use call in the bat file instead of direct use of uvicorn
  • d091b2c move alltalk API processing to the serverside, as intended originally
  • 7bdccf9 added some more option to the setting page
  • a215f13 improve a bit the code regarding all talk settings
  • d36e953 add build:watch and normalize check:watch
  • 3a25269 added new keys to I18n and improved a bit(i hope) french translation for one entry
  • 46d85cc add translations
  • 5a905e3 add one more entry to translation
  • 43981fb fix the sentence issue on alltalk and fix some attribute not being saved to the alltalk config

📊 Changes

24 files changed (+1459 additions, -285 deletions)

View changed files

📝 backend/apps/audio/main.py (+50 -195)
backend/apps/audio/model.py (+27 -0)
backend/apps/audio/providers/alltalk/alltalkApi.py (+75 -0)
backend/apps/audio/providers/alltalk/alltalkController.py (+93 -0)
backend/apps/audio/providers/alltalk/alltalkModel.py (+30 -0)
backend/apps/audio/providers/alltalk/alltalkService.py (+24 -0)
backend/apps/audio/providers/openai/openaiController.py (+99 -0)
backend/apps/audio/providers/openai/openaiModel.py (+5 -0)
backend/apps/audio/providers/openai/openaiService.py (+16 -0)
backend/apps/audio/settings.py (+77 -0)
📝 backend/config.py (+72 -1)
📝 backend/constants.py (+1 -0)
📝 backend/start_windows.bat (+1 -1)
📝 package.json (+2 -1)
📝 src/lib/apis/audio/index.ts (+76 -14)
src/lib/apis/audio/providers/alltalk/Alltalk.ts (+250 -0)
src/lib/apis/audio/providers/alltalk/AlltalkApi.ts (+82 -0)
src/lib/apis/audio/providers/alltalk/alltalkApiModel.ts (+93 -0)
📝 src/lib/components/admin/Settings/Audio.svelte (+297 -55)
📝 src/lib/components/chat/Messages/ResponseMessage.svelte (+63 -16)

...and 4 more files

📄 Description

WIP feat: add alltalk tts support

Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.

Before submitting, make sure you've checked the following:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests for validating the changes?
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Prefix: To cleary categorize this pull request, prefix the pull request title, using one of the following:
    • BREAKING CHANGE: Significant changes that may affect compatibility
    • build: Changes that affect the build system or external dependencies
    • ci: Changes to our continuous integration processes or workflows
    • chore: Refactor, cleanup, or other non-functional code changes
    • docs: Documentation update or addition
    • feat: Introduces a new feature or enhancement to the codebase
    • fix: Bug fix or error correction
    • i18n: Internationalization or localization changes
    • perf: Performance improvement
    • refactor: Code restructuring for better maintainability, readability, or scalability
    • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)
    • test: Adding missing tests or correcting existing tests
    • WIP: Work in progress, a temporary label for incomplete or ongoing work

Changelog Entry

Description

  • [Concisely describe the changes made in this pull request, including any relevant motivation and impact (e.g., fixing a bug, adding a feature, or improving performance)]

Added

  • Alltalk_tts api support

Changed

  • openai TTS and STT endpoints
  • refactored most of the audio backend
  • added alltalk and openai under the 'provider' folder

Breaking Changes

  • OPENAI TTS AND STT: due to moving certain endpoint and not having an openai API_KEY i could not confirm that my changes breaks it or not a check by someone that has the access may be required

Additional Information

  • After getting interested into alltalk_tts and seeing a discussion Discussions was already openned about it i decided to try my luck implementing it

Screenshots or Videos

  • [Attach any relevant screenshots or videos demonstrating the changes]

🔄 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/3119 **Author:** [@acceleratorlastorder](https://github.com/acceleratorlastorder) **Created:** 6/13/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/add_alltalk_tts` --- ### 📝 Commits (10+) - [`cf187f2`](https://github.com/open-webui/open-webui/commit/cf187f237a9c398d6ca97dddecbf34e5e689edc5) Add API URL configuration for AllTalk audio provider - [`660ea44`](https://github.com/open-webui/open-webui/commit/660ea44ce5a8273fd536122f7516d857759e2e80) use call in the bat file instead of direct use of uvicorn - [`d091b2c`](https://github.com/open-webui/open-webui/commit/d091b2c9cb6216a1665966cddb3e389aa80a4e75) move alltalk API processing to the serverside, as intended originally - [`7bdccf9`](https://github.com/open-webui/open-webui/commit/7bdccf964562832585df0a18c4d90b979f7f0ed6) added some more option to the setting page - [`a215f13`](https://github.com/open-webui/open-webui/commit/a215f13cdd60ab2cd2f70b5c3d3738f713af2e81) improve a bit the code regarding all talk settings - [`d36e953`](https://github.com/open-webui/open-webui/commit/d36e9536b1bd41ae484d0f53333cba67525dab6e) add build:watch and normalize check:watch - [`3a25269`](https://github.com/open-webui/open-webui/commit/3a25269a4c06a9cf8ea3e6e44dc98806b5c47b1e) added new keys to I18n and improved a bit(i hope) french translation for one entry - [`46d85cc`](https://github.com/open-webui/open-webui/commit/46d85ccf0557a56b503c6d63cb1c4669b30df9c7) add translations - [`5a905e3`](https://github.com/open-webui/open-webui/commit/5a905e3296ae45bb5d9ae7972f6a8d9607ffaccd) add one more entry to translation - [`43981fb`](https://github.com/open-webui/open-webui/commit/43981fb8f4eaf69ade2192fec5cfc14e24744bfa) fix the sentence issue on alltalk and fix some attribute not being saved to the alltalk config ### 📊 Changes **24 files changed** (+1459 additions, -285 deletions) <details> <summary>View changed files</summary> 📝 `backend/apps/audio/main.py` (+50 -195) ➕ `backend/apps/audio/model.py` (+27 -0) ➕ `backend/apps/audio/providers/alltalk/alltalkApi.py` (+75 -0) ➕ `backend/apps/audio/providers/alltalk/alltalkController.py` (+93 -0) ➕ `backend/apps/audio/providers/alltalk/alltalkModel.py` (+30 -0) ➕ `backend/apps/audio/providers/alltalk/alltalkService.py` (+24 -0) ➕ `backend/apps/audio/providers/openai/openaiController.py` (+99 -0) ➕ `backend/apps/audio/providers/openai/openaiModel.py` (+5 -0) ➕ `backend/apps/audio/providers/openai/openaiService.py` (+16 -0) ➕ `backend/apps/audio/settings.py` (+77 -0) 📝 `backend/config.py` (+72 -1) 📝 `backend/constants.py` (+1 -0) 📝 `backend/start_windows.bat` (+1 -1) 📝 `package.json` (+2 -1) 📝 `src/lib/apis/audio/index.ts` (+76 -14) ➕ `src/lib/apis/audio/providers/alltalk/Alltalk.ts` (+250 -0) ➕ `src/lib/apis/audio/providers/alltalk/AlltalkApi.ts` (+82 -0) ➕ `src/lib/apis/audio/providers/alltalk/alltalkApiModel.ts` (+93 -0) 📝 `src/lib/components/admin/Settings/Audio.svelte` (+297 -55) 📝 `src/lib/components/chat/Messages/ResponseMessage.svelte` (+63 -16) _...and 4 more files_ </details> ### 📄 Description # **WIP** feat: add alltalk tts support # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request. **Before submitting, make sure you've checked the following:** - [x] **Target branch:** Please verify that the pull request targets the `dev` branch. - [ ] **Description:** Provide a concise description of the changes made in this pull request. - [ ] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [ ] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [x] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [ ] **Testing:** Have you written and run sufficient tests for validating the changes? - [ ] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [ ] **Prefix:** To cleary categorize this pull request, prefix the pull request title, using one of the following: - **BREAKING CHANGE**: Significant changes that may affect compatibility - **build**: Changes that affect the build system or external dependencies - **ci**: Changes to our continuous integration processes or workflows - **chore**: Refactor, cleanup, or other non-functional code changes - **docs**: Documentation update or addition - **feat**: Introduces a new feature or enhancement to the codebase - **fix**: Bug fix or error correction - **i18n**: Internationalization or localization changes - **perf**: Performance improvement - **refactor**: Code restructuring for better maintainability, readability, or scalability - **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.) - **test**: Adding missing tests or correcting existing tests - **WIP**: Work in progress, a temporary label for incomplete or ongoing work # Changelog Entry ### Description - [Concisely describe the changes made in this pull request, including any relevant motivation and impact (e.g., fixing a bug, adding a feature, or improving performance)] ### Added - Alltalk_tts api support ### Changed - openai TTS and STT endpoints - refactored most of the audio backend - added alltalk and openai under the 'provider' folder ### Breaking Changes - **OPENAI TTS AND STT**: due to moving certain endpoint and not having an openai API_KEY i could not confirm that my changes breaks it or not a check by someone that has the access may be required --- ### Additional Information - After getting interested into alltalk_tts and seeing a discussion [Discussions](https://github.com/open-webui/open-webui/discussions/1221) was already openned about it i decided to try my luck implementing it ### Screenshots or Videos - [Attach any relevant screenshots or videos demonstrating the changes] --- <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 2025-11-11 17:41:59 -06: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#7988