Fix: microphone stops at ~58s on macOS Tahoe + Italian (restartTask guard + timer interval)#57
Open
G10Bi wants to merge 1 commit into
Open
Fix: microphone stops at ~58s on macOS Tahoe + Italian (restartTask guard + timer interval)#57G10Bi wants to merge 1 commit into
G10Bi wants to merge 1 commit into
Conversation
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 checksspeechRecognizer.isAvailableexits withisListening = falseif the recognizer is temporarily unavailable during a session transition — causing a permanent stop instead of a retry.Changes
isListening = falsein therestartTask()guard withscheduleBeginRecognition(after: 0.5)so the app retries instead of stopping permanentlyTested by
A non-developer user on macOS Tahoe 26.5, Apple M1, Italian speech recognition language.
Closes #57