mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 06:02:06 -05:00
[PR #5313] [MERGED] feat: Added speech playback speed control for Call mode #8463
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/5313
Author: @zabirauf
Created: 9/10/2024
Status: ✅ Merged
Merged: 9/19/2024
Merged by: @tjbck
Base:
dev-playback-controls← Head:u/zabirauf/speech-speed📝 Commits (4)
f88a86fFixed build errorb33ab6cUpdated to use Dropdown menu which is being used elsewhere in app62b01c5Cleaned up91cd8c7Undid a unnecessary change📊 Changes
1 file changed (+64 additions, -7 deletions)
View changed files
📝
src/lib/components/chat/MessageInput/CallOverlay.svelte(+64 -7)📄 Description
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:
devbranch.Changelog Entry
Description
Currently the playback in call mode doesn't have speed control so to some people it maybe more efficient to listen it at 1.5x, 2x speed and for some others who may prefer to listen to it more slowly e.g. 0.5x, 0.75x. The new playback rate control allows users to pick the speed for the session of the call.
Added
The changes are in
CallOverlay.svelteand it creates new state to show the playback speed control menu and maintain the rate state. The change leverages theplaybackRateof the<audio/>element already part of WebAPI and also therateproperty ofSpeechSynthesisUtteranceso the solution should be agnostic to any speech engine changes in future.Screenshots or Videos
Unmute the following video to listen to speed changes
https://github.com/user-attachments/assets/6376e34c-d9cf-42cf-95e3-7ed68337f2a4
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.