Skip to content

Fix: microphone stops at ~58s on macOS Tahoe + Italian (restartTask guard + timer interval)#57

Open
G10Bi wants to merge 1 commit into
f:masterfrom
G10Bi:patch-1
Open

Fix: microphone stops at ~58s on macOS Tahoe + Italian (restartTask guard + timer interval)#57
G10Bi wants to merge 1 commit into
f:masterfrom
G10Bi:patch-1

Conversation

@G10Bi
Copy link
Copy Markdown

@G10Bi G10Bi commented Jun 6, 2026

Problem
On macOS Tahoe with Italian language and Apple Silicon, the microphone stops after ~58 seconds and does not restart automatically. The user must restart it manually.

Root cause
The auto-restart logic is already in place (preemptive timer + error codes 1110/216), but in restartTask() the guard that checks speechRecognizer.isAvailable exits with isListening = false if the recognizer is temporarily unavailable during a session transition — causing a permanent stop instead of a retry.

Changes

  • Replaced isListening = false in the restartTask() guard with scheduleBeginRecognition(after: 0.5) so the app retries instead of stopping permanently
  • Reduced the preemptive timer from 55s to 45s to give more headroom before Apple's hard timeout

Tested by
A non-developer user on macOS Tahoe 26.5, Apple M1, Italian speech recognition language.

Closes #57

Adjusted the preemptive restart timer interval from 55 seconds to 45 seconds and added comments for clarity on speech recognizer availability. This is for Italian (restartTask guard + timer interval)
@G10Bi G10Bi changed the title Modify speech recognizer availability check and timer Fix: microphone stops at ~58s on macOS Tahoe + Italian (restartTask guard + timer interval) Jun 6, 2026
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.

1 participant