Skip to content

Fix auto_hangup not triggering for non-streaming TTS#85

Merged
shenjinti merged 1 commit intomiuda-ai:mainfrom
Object905:fix_auto_hangup
Apr 6, 2026
Merged

Fix auto_hangup not triggering for non-streaming TTS#85
shenjinti merged 1 commit intomiuda-ai:mainfrom
Object905:fix_auto_hangup

Conversation

@Object905
Copy link
Copy Markdown
Contributor

@Object905 Object905 commented Apr 6, 2026

Closes #84
For non-streaming TTS, end_of_stream was never set, so the TTS task waited indefinitely for more commands and never exited. This prevented TrackEnd from firing, which meant auto_hangup never triggered.

Fix: force end_of_stream=true when streaming=false so the task exits cleanly after synthesis completes.

@shenjinti shenjinti merged commit 3a82b11 into miuda-ai:main Apr 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

autoHangup doesn't work for non-streaming tts (both cached/not cached)

2 participants