recognizeOnceAsync not working for input from microphone on browser

Moran, Jack Kellen 1 Reputation point
2021-02-25T03:00:13.613+00:00

I copy and pasted the code linked below into an empty file, then hardcoded in my subscription key and region. When I open the file and click the button, the browser asks for permission to access the microphone. When I click allow, the recognizeOnceAsync function returns immediately and the result is undefined. So it accesses the microphone but then never waits for input.

(https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/quickstart/javascript/browser/from-microphone/index.html)

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,713 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,833 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 51,696 Reputation points
    2021-02-25T17:49:45.22+00:00

    Hello Moran,

    I just tried the sample and it works for me. One possible reason for this error happens when your subscription ID is brand new, we are aware of problem in subscription activation delay and we are deploying fix at the moment. If this is not your scenario one thing may help is checking if all the files are here as below:
    72231-image.png

    Another thing is checking if your browser support JavaScript.
    72167-image.png

    Regards,
    Yutong

    0 comments No comments

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.