-
Notifications
You must be signed in to change notification settings - Fork 296
Description
The application enters an infinite loop of Speech-to-Text (STT) resets and error prompts when a permanent error_speech_timeout or error_busy state occurs on Android devices.
Once this state occurs:
• ❌ Closing and reopening the app does not fix the issue
• ❌ Uninstalling and reinstalling the app does not fix the issue
• ❌ Clearing app data/cache does not fix the issue
• ✅ Only restarting the phone restores STT functionality
I/flutter (28095): STT Error: SpeechRecognitionError msg: error_speech_timeout, permanent: true
I/flutter (28095): Critical STT Error: error_speech_timeout. Resetting service (Attempt 1)...
I/flutter (28095): HomeController: Triggering _handleNoMatch from SafetyTimer
D/TTS (28095): Utterance ID has started: dd362fcb-2c17-4185-95c8-7f4219ed6c99
D/TTS (28095): Utterance ID has completed: dd362fcb-2c17-4185-95c8-7f4219ed6c99
I/flutter (28095): STT Status: listening
I/flutter (28095): STT Status: notListening
I/flutter (28095): STT Status: done
I/flutter (28095): STT Error: SpeechRecognitionError msg: error_speech_timeout, permanent: true
I/flutter (28095): Critical STT Error: error_speech_timeout. Resetting service (Attempt 1)...
I/flutter (28095): HomeController: Triggering _handleNoMatch from SafetyTimer
D/TTS (28095): Utterance ID has started: c32ab62f-5124-4699-bcce-e3998c8d5ae1
I/flutter (28095): STT Status: listening
D/TTS (28095): Utterance ID has completed: c32ab62f-5124-4699-bcce-e3998c8d5ae1
I/flutter (28095): STT Status: notListening
I/flutter (28095): STT Status: done
I/flutter (28095): STT Error: SpeechRecognitionError msg: error_speech_timeout, permanent: true
I/flutter (28095): Critical STT Error: error_speech_timeout. Resetting service (Attempt 2)...
I/flutter (28095): STT Status: listening
I/flutter (28095): HomeController: Triggering _handleNoMatch from SafetyTimer
D/TTS (28095): Utterance ID has started: 9d5a528c-645d-45b2-98ac-ce1c9c14485b
D/TTS (28095): Utterance ID has completed: 9d5a528c-645d-45b2-98ac-ce1c9c14485b
I/flutter (28095): STT Status: notListening
I/flutter (28095): STT Status: done
I/flutter (28095): STT Error: SpeechRecognitionError msg: error_speech_timeout, permanent: true
I/flutter (28095): Critical STT Error: error_speech_timeout. Resetting service (Attempt 3)...
I/flutter (28095): STT Status: listening
I/flutter (28095): STT Status: notListening
I/flutter (28095): STT Status: done
I/flutter (28095): STT Error: SpeechRecognitionError msg: error_speech_timeout, permanent: true
I/flutter (28095): STT Critical: Too many resets (4). Stopping to prevent loop.
I/flutter (28095): HomeController STT Error: Persistent STT Error. Please restart app.
I/flutter (28095): HomeController: Triggering _handleNoMatch from SttError
D/TTS (28095): Utterance ID has started: 97f2b5c7-ad7a-4188-ac65-b318d0a69630
D/TTS (28095): Utterance ID has completed: 97f2b5c7-ad7a-4188-ac65-b318d0a69630
I/flutter (28095): STT Status: listening
I/flutter (28095): STT Status: notListening
I/flutter (28095): STT Status: done
I/flutter (28095): STT Error: SpeechRecognitionError msg: error_speech_timeout, permanent: true
I/flutter (28095): STT Critical: Too many resets (5). Stopping to prevent loop.
I/flutter (28095): HomeController STT Error: Persistent STT Error. Please restart app.
I/flutter (28095): HomeController: Triggering _handleNoMatch from SttError
D/TTS (28095): Utterance ID has started: ba37b10b-0da1-48d4-bd77-d231a09478ee
D/TTS (28095): Utterance ID has completed: ba37b10b-0da1-48d4-bd77-d231a09478ee
I/flutter (28095): STT Status: listening
I/flutter (28095): STT Status: notListening
I/flutter (28095): STT Status: done
I/flutter (28095): STT Error: SpeechRecognitionError msg: error_speech_timeout, permanent: true
I/flutter (28095): STT Critical: Too many resets (6). Stopping to prevent loop.
I/flutter (28095): HomeController STT Error: Persistent STT Error. Please restart app.
I/flutter (28095): HomeController: Triggering _handleNoMatch from SttError
D/TTS (28095): Utterance ID has started: 200b38d0-5b55-4614-8bd2-8e20890c8d25
D/TTS (28095): Utterance ID has completed: 200b38d0-5b55-4614-8bd2-8e20890c8d25
I/flutter (28095): STT Status: listening
I/flutter (28095): HomeController: Triggering _handleNoMatch from SafetyTimer
D/TTS (28095): Utterance ID has started: 344a0521-58f0-4d51-97e7-85a0ce8d6369
D/TTS (28095): Utterance ID has completed: 344a0521-58f0-4d51-97e7-85a0ce8d6369
I/flutter (28095): STT Status: notListening
I/flutter (28095): STT Status: done
I/flutter (28095): STT Error: SpeechRecognitionError msg: error_speech_timeout, permanent: true
I/flutter (28095): Critical STT Error: error_speech_timeout. Resetting service (Attempt 1)...
I/flutter (28095): STT Error: SpeechRecognitionError msg: error_busy, permanent: true
Application Functionality
• The bot asks questions based on responses received from an API.
• The user replies to each question (via voice STT).
• The user’s response is submitted to the backend using an API call.
• Based on the submitted response, the backend determines and returns the next question.
• This question–answer flow continues until the process is completed.
• The user can move the app between foreground and background during the conversation without breaking the flow.
Request
• Please clarify whether continuous STT is supported on Android
• Is there any way to fully reset the SpeechRecognizer service?