diff --git a/hooks/useSpeechRecognition.ts b/hooks/useSpeechRecognition.ts index b1f6bf1..13ef72b 100644 --- a/hooks/useSpeechRecognition.ts +++ b/hooks/useSpeechRecognition.ts @@ -259,9 +259,11 @@ export function useSpeechRecognition( continuous, addsPunctuation: Platform.OS === 'ios' ? addsPunctuation : undefined, // Android-specific: longer silence timeout for more natural pauses + // CRITICAL FIX: Increased from 2000ms to 4000ms to prevent premature speech cutoff + // This allows users to pause between sentences without being cut off androidIntentOptions: Platform.OS === 'android' ? { - EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS: 2000, - EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS: 1500, + EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS: 4000, // 4 sec silence before final (was 2000) + EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS: 3000, // 3 sec pause detection (was 1500) } : undefined, });