[PR #8512] [CLOSED] feat: Add TTS control playback rate & audio to chat view #37869

Closed
opened 2026-04-25 11:09:24 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/8512
Author: @kyunwang
Created: 1/13/2025
Status: Closed

Base: devHead: feature/chatview-audio-control


📝 Commits (1)

  • 5aeb967 Add TTS playrate and volume control in chat view

📊 Changes

11 files changed (+173 additions, -9 deletions)

View changed files

📝 src/lib/components/chat/Chat.svelte (+6 -0)
📝 src/lib/components/chat/ChatControls.svelte (+3 -0)
src/lib/components/chat/Controls/AudioControls.svelte (+87 -0)
📝 src/lib/components/chat/MessageInput.svelte (+27 -0)
📝 src/lib/components/chat/MessageInput/CallOverlay.svelte (+5 -2)
📝 src/lib/components/chat/Messages.svelte (+2 -0)
📝 src/lib/components/chat/Messages/Message.svelte (+3 -0)
📝 src/lib/components/chat/Messages/MultiResponseMessages.svelte (+2 -0)
📝 src/lib/components/chat/Messages/ResponseMessage.svelte (+6 -2)
📝 src/lib/components/chat/Settings/Audio.svelte (+30 -5)
📝 src/lib/constants.ts (+2 -0)

📄 Description

Pull Request Checklist

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:
    • feat: Introduces a new feature or enhancement to the codebase

Changelog Entry

Description

The Audio controls (TTS) currently not quick to access when in the chat view and requires multiple clicks to access.
This PR adds an additional CTA to the chat view to allow for quick access to the playbackrate and volume controls for the TTS.
Includes an additional Volume control to the TTS settings Audio to be saved.

Added

  • Added a CTA to the chat view (MessageInput.svelte) to allow for quick access to the playbackrate and volume controls for the TTS.
  • Added audioParams binding for temporary values across sessions.
  • Added a new component called AudioControls.svelte to handle the audio control logic.
  • Added a constant AUDIO_PLAYBACKRATE_OPTIONS for playbackRate select options.
  • Added playback volume control to TTS settings Audio.svelte

Additional Information

Screenshots or Videos

Screenshot 2025-01-12 at 21 01 18
Screenshot 2025-01-12 at 21 01 34
Screenshot 2025-01-12 at 21 01 45
Screenshot 2025-01-12 at 23 17 00


🔄 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/8512 **Author:** [@kyunwang](https://github.com/kyunwang) **Created:** 1/13/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feature/chatview-audio-control` --- ### 📝 Commits (1) - [`5aeb967`](https://github.com/open-webui/open-webui/commit/5aeb9672bce99c56f1404781550ac36060010fe2) Add TTS playrate and volume control in chat view ### 📊 Changes **11 files changed** (+173 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/Chat.svelte` (+6 -0) 📝 `src/lib/components/chat/ChatControls.svelte` (+3 -0) ➕ `src/lib/components/chat/Controls/AudioControls.svelte` (+87 -0) 📝 `src/lib/components/chat/MessageInput.svelte` (+27 -0) 📝 `src/lib/components/chat/MessageInput/CallOverlay.svelte` (+5 -2) 📝 `src/lib/components/chat/Messages.svelte` (+2 -0) 📝 `src/lib/components/chat/Messages/Message.svelte` (+3 -0) 📝 `src/lib/components/chat/Messages/MultiResponseMessages.svelte` (+2 -0) 📝 `src/lib/components/chat/Messages/ResponseMessage.svelte` (+6 -2) 📝 `src/lib/components/chat/Settings/Audio.svelte` (+30 -5) 📝 `src/lib/constants.ts` (+2 -0) </details> ### 📄 Description # Pull Request Checklist **Before submitting, make sure you've checked the following:** - [x] **Target branch:** Please verify that the pull request targets the `dev` branch. - [x] **Description:** Provide a concise description of the changes made in this pull request. - [x] **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? - [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [x] **Testing:** Have you written and run sufficient tests for validating the changes? - [x] **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? - [x] **Prefix:** To cleary categorize this pull request, prefix the pull request title, using one of the following: - **feat**: Introduces a new feature or enhancement to the codebase # Changelog Entry ### Description The Audio controls (TTS) currently not quick to access when in the chat view and requires multiple clicks to access. This PR adds an additional CTA to the chat view to allow for quick access to the playbackrate and volume controls for the TTS. Includes an additional Volume control to the TTS settings Audio to be saved. ### Added - Added a CTA to the chat view (`MessageInput.svelte`) to allow for quick access to the playbackrate and volume controls for the TTS. - Added `audioParams` binding for temporary values across sessions. - Added a new component called `AudioControls.svelte` to handle the audio control logic. - Added a constant `AUDIO_PLAYBACKRATE_OPTIONS` for playbackRate select options. - Added playback volume control to TTS settings `Audio.svelte` ### Additional Information - Related issue: #1331 - For discussion: #8511 ### Screenshots or Videos ![Screenshot 2025-01-12 at 21 01 18](https://github.com/user-attachments/assets/0223a015-ee95-4199-aa34-789f51efda6e) ![Screenshot 2025-01-12 at 21 01 34](https://github.com/user-attachments/assets/d5363343-6cfe-4e06-9c2e-0a86867a551d) ![Screenshot 2025-01-12 at 21 01 45](https://github.com/user-attachments/assets/f810fee3-881a-4f78-ad4f-3e5a2d4efc29) ![Screenshot 2025-01-12 at 23 17 00](https://github.com/user-attachments/assets/c1e3fd03-9e57-4b0b-b409-eb2079eb252e) --- <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-25 11:09:24 -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#37869