speech-to-text javascript api not working properly on HONOR android 13 tablet

Mike Liu 0 Reputation points
2024-08-07T10:10:40.51+00:00

I encountered an issue while running the demo from https://github.com/Azure-Samples/AzureSpeechReactSample/ on my Honor 9 tablet running Android 13 web browser(tried chrome, edge etc).

The demo doesn't function properly. When I tap the green button to initiate STT, the green microphone icon in the upper right corner of the tablet lights up, indicating that the mic is active. And there is no error in the console log. However, when I speak, no recognition results are obtained, as if no audio input is being received.

Interestingly, if I trigger the sttFromMic function a second time without stopping the first recognizer, it works normally and can receive and recognize my speech input. If I stop the previous recognizer before triggering sttFromMic function for the second time, it still doesn't work properly.

This issue only occurs when using the tablet's default microphone. When using Bluetooth earphones as the audio input device, the problem doesn't appear. Moreover, most other devices don't exhibit this issue.

I would appreciate any assistance in resolving this problem. Thank you for your attention to this matter.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
2,061 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.