[GH-ISSUE #269] feat: ability to pause the audio #27542

Closed
opened 2026-04-25 02:15:05 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @anuraagdjain on GitHub (Dec 23, 2023).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/269

Is your feature request related to a problem? Please describe.
The speak icon doesn't have the ability to pause the speech, and if accidentally clicked on a long message, the user has to close the browser tab to fully terminate the speech.

image

Describe the solution you'd like
A clear and concise description of what you want to happen.

From the MDN docs, we could use .speaking and .pause() methods to

  1. Show the pause icon when window.speechSynthesis.speaking is true
  2. call the window.speechSynthesis.pause() function instead of .speak(message) in this function.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Originally created by @anuraagdjain on GitHub (Dec 23, 2023). Original GitHub issue: https://github.com/open-webui/open-webui/issues/269 **Is your feature request related to a problem? Please describe.** The speak icon doesn't have the ability to pause the speech, and if accidentally clicked on a long message, the user has to close the browser tab to fully terminate the speech. <img width="751" alt="image" src="https://github.com/ollama-webui/ollama-webui/assets/4705103/1b8f1c80-a7ec-4ec1-8fc7-1cb4c919c86d"> **Describe the solution you'd like** A clear and concise description of what you want to happen. From the MDN [docs](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance), we could use `.speaking` and `.pause()` methods to 1. Show the pause icon when `window.speechSynthesis.speaking` is true 2. call the `window.speechSynthesis.pause()` function instead of `.speak(message)` in this [function](https://github.com/anuraagdjain/ollama-webui/blob/main/src/lib/components/chat/Messages.svelte#L72). **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. **Additional context** Add any other context or screenshots about the feature request here.
GiteaMirror added the enhancementgood first issue labels 2026-04-25 02:15:05 -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#27542