Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speech-to-Text Working on Desktop Web but Not on Mobile Web #582

Open
AftabBagwan opened this issue Jan 22, 2025 · 0 comments
Open

Speech-to-Text Working on Desktop Web but Not on Mobile Web #582

AftabBagwan opened this issue Jan 22, 2025 · 0 comments

Comments

@AftabBagwan
Copy link

AftabBagwan commented Jan 22, 2025

The speech_to_text package works perfectly on the desktop web (tested on Chrome) but fails on mobile web. On mobile web, the recording sound can be heard initially, but the speech input is not recognized. After the initial sound, no further input is processed.


Code snippet

_speechEnabled = await _speechToText.initialize(
    finalTimeout: const Duration(seconds: 60),
    debugLogging: true,
    options: [SpeechToText.webDoNotAggregate],
);

await _speechToText.listen(
    onResult: _onSpeechResult,
    localeId: "en-IN",
    listenMode: ListenMode.dictation,
    listenFor: const Duration(seconds: 60),
    onDevice: true,
);
  • On desktop web (Chrome), the plugin works as expected, recognizing speech and triggering the onResult callback.
  • On mobile web (Chrome), the recording sound plays initially, but no speech is recognized, and the onResult callback is not triggered.

Environment Details

  • speech_to_text package version: [7.0.0]

  • Flutter version: [3.27.3]

  • Device: [Oppo A79 5G]

  • Desktop Browser: [Chrome 132.0.6834.84 (Official Build) (arm64) (MacOS)]

  • Mobile Browser: [Chrome for Android 131.0.6778.260]

  • I would appreciate any guidance or insights from the maintainers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant