Compartilhar via


PronunciationAssessmentResult Class

  • java.lang.Object
    • com.microsoft.cognitiveservices.speech.PronunciationAssessmentResult

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 PronunciationAssessmentResult fromResult(SpeechRecognitionResult speechRecognitionResult)

Creates an instance of the PronunciationAssessmentResult from a speech recognition result

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.

ContentAssessmentResult 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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Method Details

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

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.

getContentAssessmentResult

public ContentAssessmentResult getContentAssessmentResult()

Gets the content assessment result. Only available when content assessment is enabled.

Returns:

The content assessment result.

getFluencyScore

public Double getFluencyScore()

Gets the score indicating the fluency of the given speech.

Returns:

The fluency 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.

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.

Applies to