EnableMiscue parameter not working when using javascript Speech SDK
I have javascript using the SpeechSDK.SpeechRecognizer class to return pronunciation assessment results. The code works and I can change pronunciation configuration parameters and see those changes in the results. For example, I can switch GradingSystem between FivePoint and HundredMark. However, when I set enableMiscue to true (it defaults to false), the results do not include error types for omission or insertion.
I am trying to get a result similar to the pronunciation assessment example in the Speech Studio (and have referenced the example javascript): https://speech.microsoft.com/portal/pronunciationassessmenttool
Here is the code I am using:
Any ideas on why this will not return error types for omission or insertion?
// Set up recognizer
var speechConfig = SpeechSDK.SpeechConfig.fromSubscription("###", "australiaeast");
speechConfig.speechRecognitionLanguage = "en-US";
var audioConfig = SpeechSDK.AudioConfig.fromDefaultMicrophoneInput();
recognizer = new SpeechSDK.SpeechRecognizer(speechConfig, audioConfig);
// Add pronunciation parameters
var pronunciationConfig = SpeechSDK.PronunciationAssessmentConfig.fromJSON('{"referenceText":"' + referenceText + '","gradingSystem":"HundredMark","granularity":"Word"}');
pronunciationConfig.enableMiscue = true; // I have also tried including this in the JSON in the line above
pronunciationConfig.applyTo(recognizer);
// Get results
recognizer.recognized = function (s, e) {
let paResult = SpeechSDK.PronunciationAssessmentResult.fromResult(e.result);
}
// starting and stopping using: recognizer.startContinuousRecognitionAsync() and recognizer.stopContinuousRecognitionAsync()