mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-12 02:54:03 -05:00
[GH-ISSUE #16644] issue: Voice Mode not playing audio until entire audio file has been generated #137720
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 @Byrd910 on GitHub (Aug 15, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16644
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.22
Ollama Version (if applicable)
No response
Operating System
Fedora 41
Browser (if applicable)
Chrome 139.0.7258.123
Confirmation
README.md.Expected Behavior
I would expect Voice Mode to begin playing audio as soon as the TTS engine begins generating it, similar to how the "Read Aloud" button works.
Actual Behavior
I am using Orpheus-FastAPI by Lex-au as my TTS engine, and the Audio Text-to-Speech settings are configured to split response on Punctuation. I can see this is happening when reviewing the Orpheus-FastAPI logs (it is receiving/generating one sentence at a time).
When using the "Read Aloud" button after generating text in a conversation, audio streaming works as expected - i.e. it begins narrating audio as soon as Orpheus-FastAPI starts generating sentences. However, when using "Voice Mode", while response splitting on punctuation and sentence-by-sentence generation is still occurring on the Orpheus end exactly as with the "Read Aloud" button - no audio begins playing until the entire LLM response has been generated by Orpheus, resulting in a long delay (depending on the length of the LLM response).
Steps to Reproduce
TTS Engine: OpenAI
URL: http://path-to-orpheus:5005/v1
API Key: not-needed
TTS Voice: tara
TTS Model: tts-1
Response Splitting: Punctuation
Logs & Screenshots
I can provide any logs requested.
Additional Information
No response
@Byrd910 commented on GitHub (Aug 15, 2025):
Update: I also tested with a different TTS just now, and was able to still reproduce the issue.
I used Kokoro-FastAPI with the default docker/gpu/docker-compose.yml setup. Configured my Open WebUI Settings->Audio->TTS settings as follows:
TTS Engine: OpenAI
URL: http://path-to-kokoro:8880/v1
API Key: not-needed
TTS Voice: af_bella
TTS Model: kokoro
Response Splitting: Punctuation
Because Kokoro is much faster, I asked for a 750-word story. Using the "Read Aloud" button, audio narration starts almost immediately. Using "Voice Mode" asking for a 750-word story, it takes a very long time to start audio narration (waiting for the entire text to be generated instead of starting narration after one sentence).
@silentoplayz commented on GitHub (Aug 16, 2025):
Related PR - https://github.com/open-webui/open-webui/pull/16152