共用方式為


PronunciationAssessmentConfig class

發音評定設定。

建構函式

PronunciationAssessmentConfig(string, PronunciationAssessmentGradingSystem, PronunciationAssessmentGranularity, boolean)

發音AssessmentConfig 建構函式。

屬性

enableMiscue

取得布爾值 enableMiscue 屬性。 已在1.26.0版中新增

enableProsodyAssessment

啟用 Prosody 評定。 已在1.34.0版中新增

nbestPhonemeCount

設定 1.20.0 版中新增的 nbest phoneme 計數

phonemeAlphabet

設定注音字母。 有效值為 「SAPI」 (預設值) 和 「IPA」。 已在1.20.0版中新增

properties
referenceText

取得參考文字。

方法

applyTo(Recognizer)
enableContentAssessmentWithTopic(string)

啟用內容評量並設定主題。 已在1.34.0版中新增

fromJSON(string)
toJSON()

建構函式詳細資料

PronunciationAssessmentConfig(string, PronunciationAssessmentGradingSystem, PronunciationAssessmentGranularity, boolean)

發音AssessmentConfig 建構函式。

new PronunciationAssessmentConfig(referenceText: string, gradingSystem?: PronunciationAssessmentGradingSystem, granularity?: PronunciationAssessmentGranularity, enableMiscue?: boolean)

參數

referenceText

string

enableMiscue

boolean

屬性詳細資料

enableMiscue

取得布爾值 enableMiscue 屬性。 已在1.26.0版中新增

boolean enableMiscue

屬性值

boolean

enableMiscue - 啟用錯誤。

enableProsodyAssessment

啟用 Prosody 評定。 已在1.34.0版中新增

void enableProsodyAssessment

屬性值

void

nbestPhonemeCount

設定 1.20.0 版中新增的 nbest phoneme 計數

void nbestPhonemeCount

屬性值

void

phonemeAlphabet

設定注音字母。 有效值為 「SAPI」 (預設值) 和 「IPA」。 已在1.20.0版中新增

void phonemeAlphabet

屬性值

void

properties

PropertyCollection properties

屬性值

組態的屬性。

referenceText

取得參考文字。

string referenceText

屬性值

string

參考文字。

方法詳細資料

applyTo(Recognizer)

function applyTo(recognizer: Recognizer)

參數

recognizer
Recognizer

enableContentAssessmentWithTopic(string)

啟用內容評量並設定主題。 已在1.34.0版中新增

function enableContentAssessmentWithTopic(topic: string)

參數

topic

string

內容評量的主題。

fromJSON(string)

static function fromJSON(json: string): PronunciationAssessmentConfig

參數

json

string

包含發音評估參數的 json 字串。

傳回

發音實例AssessmentConfig

toJSON()

function toJSON(): string

傳回

string