undefined result with microsoft-cognitiveservices-speech-sdk
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