undefined result with microsoft-cognitiveservices-speech-sdk

Viv 5 Reputation points
2023-12-13T16:03:12.7866667+00:00

We’re using the Node SDK (microsoft-cognitiveservices-speech-sdk) version 1.33.1 (latest) to classify pre-recorded speech input (wav). Following the example code, we’re creating a SpeechRecognizer instance and using recognizeOnceAsync to get the single-shot response from the API before converting it into a PronunciationAssessmentResult. Unfortunately we’re running into an unexpected scenario where the value passed to the recognizeOnceAsync success callback is undefined. This isn’t supported by the types and we aren’t sure what it means or how to handle it.
Screenshot 2023-12-13 at 9.54.51 AM.png

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
{count} vote

Your answer

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