PronunciationAssessmentConfig class
Pronunciation assessment configuration.
Constructors
Pronunciation |
PronunciationAssessmentConfig constructor. |
Properties
enable |
Gets the boolean enableMiscue property. Added in version 1.26.0 |
enable |
Enables the prosody assessment. Added in version 1.34.0 |
nbest |
Sets the nbest phoneme count Added in version 1.20.0 |
phoneme |
Sets the phoneme alphabet. The valid values are "SAPI" (default) and "IPA". Added in version 1.20.0 |
properties | |
reference |
Gets the reference text. |
Methods
apply |
|
enable |
Enables content assessment and sets the topic. Added in version 1.34.0 |
fromJSON(string) | |
toJSON() |
Constructor Details
PronunciationAssessmentConfig(string, PronunciationAssessmentGradingSystem, PronunciationAssessmentGranularity, boolean)
PronunciationAssessmentConfig constructor.
new PronunciationAssessmentConfig(referenceText: string, gradingSystem?: PronunciationAssessmentGradingSystem, granularity?: PronunciationAssessmentGranularity, enableMiscue?: boolean)
Parameters
- referenceText
-
string
- gradingSystem
- PronunciationAssessmentGradingSystem
- granularity
- PronunciationAssessmentGranularity
- enableMiscue
-
boolean
Property Details
enableMiscue
Gets the boolean enableMiscue property. Added in version 1.26.0
boolean enableMiscue
Property Value
boolean
enableMiscue - enable miscue.
enableProsodyAssessment
Enables the prosody assessment. Added in version 1.34.0
void enableProsodyAssessment
Property Value
void
nbestPhonemeCount
Sets the nbest phoneme count Added in version 1.20.0
void nbestPhonemeCount
Property Value
void
phonemeAlphabet
Sets the phoneme alphabet. The valid values are "SAPI" (default) and "IPA". Added in version 1.20.0
void phonemeAlphabet
Property Value
void
properties
referenceText
Gets the reference text.
string referenceText
Property Value
string
Reference text.
Method Details
applyTo(Recognizer)
enableContentAssessmentWithTopic(string)
Enables content assessment and sets the topic. Added in version 1.34.0
function enableContentAssessmentWithTopic(topic: string)
Parameters
- topic
-
string
Topic for content assessment.
fromJSON(string)
static function fromJSON(json: string): PronunciationAssessmentConfig
Parameters
- json
-
string
The json string containing the pronunciation assessment parameters.
Returns
Instance of PronunciationAssessmentConfig
toJSON()
function toJSON(): string
Returns
string