mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #19861] issue: Sentence skipping in voice mode #34549
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?
Originally created by @QuitHub on GitHub (Dec 10, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19861
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.41
Ollama Version (if applicable)
No response
Operating System
macOS 15.7.1
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
In voice mode you would expect that the TTS function would read all the lines of the response.
Actual Behavior
Some sentences get skipped.
The TTS event dispatching logic only tracks the last dispatched sentence using
message.lastSentenceandonly dispatches the second-to-last sentence from each update. This causes sentences to be skipped when:
Steps to Reproduce
Ask gemini 3 pro in voice mode to read the first page of the bible (or alternative log text) with line numbers.
Logs & Screenshots
Example of skipping pattern:
Additional Information
I have a fix:
Index-Based Sentence Tracking
Implemented an index-based sentence tracking system that:
message.lastDispatchedIndexto track the array position of the last sentence that was dispatchedlastDispatchedIndex + 1onwards and dispatches all new sentencesThis ensures every sentence is dispatched for TTS exactly once, including repeated sentences. For example, if the AI
says "Hello. Goodbye. Hello." all three sentences will be spoken.
Before (Stream Handler):
After (Stream Handler):
@owui-terminator[bot] commented on GitHub (Dec 10, 2025):
🔍 Similar Issues Found
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
#19777 issue:
by Yaute7 • Dec 05, 2025 •
bug#19563 issue:
by naruto7g • Nov 28, 2025 •
bug#19752 issue: minor UI Bug: knowledge sharing
by mahenning • Dec 04, 2025 •
bug#19211 issue:
by Byrnes9 • Nov 16, 2025 •
bug#14440 issue:
by ehsan8203 • May 28, 2025 •
bugShow 5 more related issues
#19417 issue: v0.6.37 SQL Error
by AKHYP • Nov 24, 2025 •
bug#19047 issue: followup questions sometimes fail to generate
by avidwriter • Nov 08, 2025 •
bug#19170 issue: Settings not honored or understood
by itguy327 • Nov 13, 2025 •
bug#16959 issue:
by Te-eMster • Aug 27, 2025 •
bug#17388 issue:
by abxis • Sep 12, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.