speechService.listen(
localeId: effectiveLocaleId,
onResult: _resultListener,
listenFor: const Duration(seconds: 60),
pauseFor: const Duration(seconds: 3),
onSoundLevelChange: _soundLevelListener,
listenOptions: SpeechListenOptions(
listenMode: .dictation, // only on iOS
onDevice: false,
cancelOnError: true,
partialResults: true,
autoPunctuation: true, // only on iOS
enableHapticFeedback: true, // only on iOS
),
);
Hello,
when I was testing with this code
it listens for only ~ 12 seconds, when I increase the
pauseForit listens for moreso I thought the problem could be in the codebase, I suggested some changes here with claude-code 😆
https://github.com/csdcorp/speech_to_text/pull/655/changes