-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: ErrorType (UnexpectedBreak,MissingBreak) are not receiving in detailResult words from sdk #804
Comments
@syama-aot Thanks for using JS Speech SDK, and submitting this issue. After creating a PronunciationAssessmentConfig instance, you must set that instance's enableProsodyAssessment property to true, e.g.
Hope that helps. |
pronunciationAssessmentConfig.enableContentAssessmentWithTopic( // setting the recognition language to English. // create the speech recognizer. let totalResultText = ""; // Accumulate recognized text
} reco.recognizing = (s, e) => { reco.recognized = (s, e) => { reco.sessionStopped = (s, e) => { const endTime = Date.now(); // Measure end time reco.startContinuousRecognitionAsync( |
@syama-aot In the Speech Studio, looking at the sample code (under Developer Resources) for JavaScript, I see this comment:
The sample code then details logic to perform that comparison. Is that logic what you're asking for? |
@glharper I have a similar question with the SDK in Swift.
But the word-level assessment results never return UnexpectedBreak/MissingBreak. The only errorType I can get is "Mispronunciation". Here is my setup:
|
Error types related to breaks, including UnexpectedBreak and MissingBreak. The current version doesn't provide the break error type. You need to set thresholds on the fields UnexpectedBreak – Confidence and MissingBreak – confidence to decide whether there's an unexpected break or missing break before the word.Suggested thresholds on both confidence scores are 0.75. That means, if the value of UnexpectedBreak – Confidence is larger than 0.75, it has an unexpected break. If the value of MissingBreak – confidence is larger than 0.75, it has a missing break. While 0.75 is a value we recommend, it's better to adjust the thresholds based on your own scenario. If you want to have variable detection sensitivity on these two breaks, you can assign different thresholds to the UnexpectedBreak - Confidence and MissingBreak - Confidence fields. |
What happened?
I downloaded the same audio file from the example provided on the Microsoft Pronunciation Assessment Tool (https://speech.microsoft.com/portal/pronunciationassessmenttool) portal. When I attempted to retrieve the detailed results using the SDK, I noticed a discrepancy. While the public portal displayed 2 missing breaks, 1 unexpected break, and 2 mispronunciations, I was only able to receive information about the mispronunciations from the SDK. Can you explain why this difference exists?
Version
1.34.0 (Latest)
What browser/platform are you seeing the problem on?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: