Increase Android STT silence timeout from 2s to 4s
Fix premature speech cutoff during natural pauses: - EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS: 4000ms (was 2000ms) - EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS: 3000ms (was 1500ms) This allows users to pause between sentences without being cut off. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
4b91aba08e
commit
a1ff324a5a
@ -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,
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user