Class PronunciationAssessmentResult
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.PronunciationAssessmentResult
-
public final class PronunciationAssessmentResult extends Object
Represents the result of pronunciation assessment. Added in version 1.14.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PronunciationAssessmentResultfromResult(SpeechRecognitionResult speechRecognitionResult)Creates an instance of the PronunciationAssessmentResult from a speech recognition resultDoublegetAccuracyScore()Gets the pronunciation accuracy of the given speech, which indicates how closely the phonemes match a native speaker's pronunciationDoublegetCompletenessScore()Gets the score indicating the completeness of the given speech by calculating the ratio of pronounced words towards entire input.ContentAssessmentResultgetContentAssessmentResult()Gets the content assessment result.DoublegetFluencyScore()Gets the score indicating the fluency of the given speech.DoublegetPronunciationScore()Gets the overall score indicating the pronunciation quality of the given speech.DoublegetProsodyScore()Gets the score indicating the prosody quality of the given speech.
-
-
-
Method Detail
-
fromResult
public static PronunciationAssessmentResult fromResult(SpeechRecognitionResult speechRecognitionResult)
Creates an instance of the PronunciationAssessmentResult from a speech recognition result- Parameters:
speechRecognitionResult- Specifies the speech recognition result- Returns:
- The PronunciationAssessmentResult being created.
-
getAccuracyScore
public Double getAccuracyScore()
Gets the pronunciation accuracy of the given speech, which indicates how closely the phonemes match a native speaker's pronunciation- Returns:
- The accuracy score
-
getPronunciationScore
public Double getPronunciationScore()
Gets the overall score indicating the pronunciation quality of the given speech. This is calculated from AccuracyScore, FluencyScore and CompletenessScore with weight.- Returns:
- The pronunciation score.
-
getCompletenessScore
public Double getCompletenessScore()
Gets the score indicating the completeness of the given speech by calculating the ratio of pronounced words towards entire input.- Returns:
- The completeness score.
-
getFluencyScore
public Double getFluencyScore()
Gets the score indicating the fluency of the given speech.- Returns:
- The fluency score.
-
getProsodyScore
public Double getProsodyScore()
Gets the score indicating the prosody quality of the given speech. Only available when prosody assessment is enabled.- Returns:
- The prosody score.
-
getContentAssessmentResult
public ContentAssessmentResult getContentAssessmentResult()
Gets the content assessment result. Only available when content assessment is enabled.- Returns:
- The content assessment result.
-
-