PronunciationAssessmentResult Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. PronunciationAssessmentResult
- com.
public final class PronunciationAssessmentResult
Represents the result of pronunciation assessment. Added in version 1.14.0
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Pronunciation |
fromResult(SpeechRecognitionResult speechRecognitionResult)
Creates an instance of the Pronunciation |
java.lang.Double |
getAccuracyScore()
Gets the pronunciation accuracy of the given speech, which indicates how closely the phonemes match a native speaker's pronunciation |
java.lang.Double |
getCompletenessScore()
Gets the score indicating the completeness of the given speech by calculating the ratio of pronounced words towards entire input. |
Content |
getContentAssessmentResult()
Gets the content assessment result. |
java.lang.Double |
getFluencyScore()
Gets the score indicating the fluency of the given speech. |
java.lang.Double |
getPronunciationScore()
Gets the overall score indicating the pronunciation quality of the given speech. |
java.lang.Double |
getProsodyScore()
Gets the score indicating the prosody quality of the given speech. |
Methods inherited from java.lang.Object
Method Details
fromResult
public static PronunciationAssessmentResult fromResult(SpeechRecognitionResult speechRecognitionResult)
Creates an instance of the PronunciationAssessmentResult from a speech recognition result
Parameters:
Returns:
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:
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:
getContentAssessmentResult
public ContentAssessmentResult getContentAssessmentResult()
Gets the content assessment result. Only available when content assessment is enabled.
Returns:
getFluencyScore
public Double getFluencyScore()
Gets the score indicating the fluency of the given speech.
Returns:
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:
getProsodyScore
public Double getProsodyScore()
Gets the score indicating the prosody quality of the given speech. Only available when prosody assessment is enabled.
Returns: