Skip to content

While testing on Android - The voice listens for only about 12 seconds! #656

@danyabdo94

Description

@danyabdo94

Hello,
when I was testing with this code

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
      ),
    );

it listens for only ~ 12 seconds, when I increase the pauseFor it listens for more

so 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions