PronunciationAssessmentConfig class

Pronunciation assessment configuration.

Constructors

PronunciationAssessmentConfig(string, PronunciationAssessmentGradingSystem, PronunciationAssessmentGranularity, boolean)

PronunciationAssessmentConfig constructor.

Properties

enableMiscue

Gets the boolean enableMiscue property. Added in version 1.26.0

enableProsodyAssessment

Enables the prosody assessment. Added in version 1.34.0

nbestPhonemeCount

Sets the nbest phoneme count Added in version 1.20.0

phonemeAlphabet

Sets the phoneme alphabet. The valid values are "SAPI" (default) and "IPA". Added in version 1.20.0

properties
referenceText

Gets the reference text.

Methods

applyTo(Recognizer)
enableContentAssessmentWithTopic(string)

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

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

PropertyCollection properties

Property Value

Properties of the config.

referenceText

Gets the reference text.

string referenceText

Property Value

string

Reference text.

Method Details

applyTo(Recognizer)

function applyTo(recognizer: Recognizer)

Parameters

recognizer
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