PronunciationAssessmentConfig Class

Definition

Represents pronunciation assessment configuration. Note: close() must be called in order to release underlying resources held by the object. Added in version 1.14.0

public class PronunciationAssessmentConfig
Inheritance
java.lang.Object
AutoCloseable
PronunciationAssessmentConfig

Constructors

PronunciationAssessmentConfig(String referenceText)

Initializes an instance of the PronunciationAssessmentConfig For the parameters details, see https://docs.microsoft.com/azure/cognitive-services/speech-service/rest-speech-to-text#pronunciation-assessment-parameters

PronunciationAssessmentConfig(String referenceText, PronunciationAssessmentGradingSystem gradingSystem, PronunciationAssessmentGranularity granularity)

Initializes an instance of the PronunciationAssessmentConfig For the parameters details, see https://docs.microsoft.com/azure/cognitive-services/speech-service/rest-speech-to-text#pronunciation-assessment-parameters

PronunciationAssessmentConfig(String referenceText, PronunciationAssessmentGradingSystem gradingSystem, PronunciationAssessmentGranularity granularity, boolean enableMiscue)

Initializes an instance of the PronunciationAssessmentConfig For the parameters details, see https://docs.microsoft.com/azure/cognitive-services/speech-service/rest-speech-to-text#pronunciation-assessment-parameters

Methods

applyTo(Recognizer recognizer)

Applies the settings in this config to a recognizer.

close()

Explicitly frees any external resource attached to the object

fromJson(String json)

Creates an instance of the PronunciationAssessmentConfig from a json string

getReferenceText()

Gets the reference text.

setNBestPhonemeCount(int count)

Sets the nbest phoneme alphabet

setPhonemeAlphabet(String value)

Sets the phoneme alphabet

setReferenceText(String value)

Sets the reference text.

toJson()

Gets the json string of pronunciation assessment parameters.

Applies to