Skip to content

Honor Pad 9 (Android 13): Speech recognition fails on first attempt, requires double triggering of sttFromMic function #11

@peterrookie

Description

@peterrookie

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. Run the demo https://github.com/Azure-Samples/AzureSpeechReactSample/ on an Honor Pad 9 tablet running Android 13 with web browser (tried chrome, edge etc.).
  2. Use the tablet's default microphone (issue doesn't occur with Bluetooth headsets).
  3. Click the green button to start STT.
  4. Speak into the microphone.
  5. Observe that no recognition results are returned, despite the green mic icon in the top right corner indicating that the mic is working.
  6. Without stopping the first recognizer, trigger the sttFromMic function again.
  7. Observe that it now works correctly, receiving and recognizing speech input.

Note: If the previous recognizer is stopped before triggering sttFromMic again, the issue persists.

Any log messages given by the failure

No error messages are displayed in the console. Detailed event logs have been provided, showing the connection and recognition process, but no apparent errors.

Expected/desired behavior

The speech-to-text functionality should work correctly on the first trigger, as it does on other devices.

OS and Version?

Honor Pad 9, Android 13, Magic UI

Versions

Azure Speech SDK version: 1.32.0
"microsoft-cognitiveservices-speech-sdk": "^1.32.0"

Mention any other details that might be useful

  • The issue only occurs when using the tablet's default microphone. It works fine with Bluetooth headsets as the audio input device.
  • Most other devices do not exhibit this problem.
  • Attempts to resolve the issue:
    1. Tried delaying the call to startContinuousRecognitionAsync, thinking it might be a device initialization delay issue, but this was ineffective.
    2. Attempted to repeatedly call startContinuousRecognitionAsync without reinitializing the configuration, which was also unsuccessful.
    3. The only effective solution is to trigger the entire sttFromMic function twice.
  • The issue seems specific to this tablet model, as it works normally on other devices.

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