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.
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
Show the pause icon when window.speechSynthesis.speaking is true
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.
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.
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.
Describe the solution you'd like
A clear and concise description of what you want to happen.
From the MDN docs, we could use
.speakingand.pause()methods towindow.speechSynthesis.speakingis truewindow.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.