PronunciationAssessmentConfig Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. PronunciationAssessmentConfig
- com.
Implements
public final class PronunciationAssessmentConfig
implements java.lang.AutoCloseable
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
Constructor Summary
| Constructor | Description |
|---|---|
| PronunciationAssessmentConfig(String referenceText) |
Initializes an instance of the Pronunciation |
| PronunciationAssessmentConfig(String referenceText, PronunciationAssessmentGradingSystem gradingSystem, PronunciationAssessmentGranularity granularity) |
Initializes an instance of the Pronunciation |
| PronunciationAssessmentConfig(String referenceText, PronunciationAssessmentGradingSystem gradingSystem, PronunciationAssessmentGranularity granularity, boolean enableMiscue) |
Initializes an instance of the Pronunciation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| void |
applyTo(Recognizer recognizer)
Applies the settings in this config to a recognizer. |
| void |
close()
Explicitly frees any external resource attached to the object |
| void |
enableProsodyAssessment()
Enables prosody assessment. |
|
static
Pronunciation |
fromJson(String json)
Creates an instance of the Pronunciation |
|
Safe |
getImpl()
Returns the Pronunciation |
| java.lang.String |
getReferenceText()
Gets the reference text. |
| void |
setNBestPhonemeCount(int count)
Sets the nbest phoneme alphabet |
| void |
setPhonemeAlphabet(String value)
Sets the phoneme alphabet |
| void |
setReferenceText(String value)
Sets the reference text. |
| java.lang.String |
toJson()
Gets the json string of pronunciation assessment parameters. |
Methods inherited from java.lang.Object
Constructor Details
PronunciationAssessmentConfig
public 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
Parameters:
PronunciationAssessmentConfig
public 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
Parameters:
PronunciationAssessmentConfig
public 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
Parameters:
Method Details
applyTo
public void applyTo(Recognizer recognizer)
Applies the settings in this config to a recognizer.
Parameters:
close
public void close()
Explicitly frees any external resource attached to the object
enableProsodyAssessment
public void enableProsodyAssessment()
Enables prosody assessment.
fromJson
public static PronunciationAssessmentConfig fromJson(String json)
Creates an instance of the PronunciationAssessmentConfig from a json string
Parameters:
Returns:
getImpl
public SafeHandle getImpl()
Returns the PronunciationAssessmentConfig
Returns:
getReferenceText
public String getReferenceText()
Gets the reference text.
Returns:
setNBestPhonemeCount
public void setNBestPhonemeCount(int count)
Sets the nbest phoneme alphabet
Parameters:
setPhonemeAlphabet
public void setPhonemeAlphabet(String value)
Sets the phoneme alphabet
Parameters:
setReferenceText
public void setReferenceText(String value)
Sets the reference text.
Parameters:
toJson
public String toJson()
Gets the json string of pronunciation assessment parameters.
Returns: