EnableMiscue parameter not working when using javascript Speech SDK

Mike Wehinger 5 Reputation points
2023-02-18T22:01:46.4066667+00:00

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()
Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,945 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.