class PronunciationAssessmentConfig
発音評価の構成を定義するクラスが 1.14.0 で追加されました。
メンバー
operator SPXPRONUNCIATIONASSESSMENTCONFIGHANDLE
構文: public inline explicit operator SPXPRONUNCIATIONASSESSMENTCONFIGHANDLE ( ) const;
基になるハンドル値を取得するために使用される内部演算子。
返品ポリシー
ハンドル。
ToJson
構文: public inline std::string ToJson ( ) const;
発音評価パラメーターの json 文字列を取得します。
返品ポリシー
発音評価パラメーターの json 文字列。
GetReferenceText
構文: public inline std::string GetReferenceText ( );
参照テキストを取得します。
返品ポリシー
参照テキスト。
SetReferenceText
構文: public inline void SetReferenceText ( const std::string & referenceText );
参照テキストを設定します。
パラメーター
-
referenceText
参照テキスト。
SetReferenceText
構文: public inline void SetReferenceText ( const std::wstring & referenceText );
参照テキストを設定します。
パラメーター
-
referenceText
参照テキスト。
SetPhonemeAlphabet
構文: public inline void SetPhonemeAlphabet ( const std::string & phonemeAlphabet );
音素アルファベットを設定します。 有効な値は、"SAPI" (既定値) と "IPA" です。
バージョン 1.20.0 で追加されました。
パラメーター
-
phonemeAlphabet
音素のアルファベット。
SetNBestPhonemeCount
構文: public inline void SetNBestPhonemeCount ( int count );
結果の nbest 音素数を設定します。
バージョン 1.20.0 で追加されました。
パラメーター
-
count
nbest 音素数。
EnableProsodyAssessment
構文: public inline void EnableProsodyAssessment ( );
プロソディ評価を有効にします。
バージョン 1.33.0 で追加されました。
EnableContentAssessmentWithTopic
構文: public inline void EnableContentAssessmentWithTopic ( const std::string & contentTopic );
トピックを使用してコンテンツ評価を有効にします。
バージョン 1.33.0 で追加されました。
パラメーター
-
contentTopic
コンテンツ トピックです。
ApplyTo
構文: public inline void ApplyTo ( std::shared_ptr< Recognizer > recognizer ) const;
この構成の設定を Recognizer に適用します。
パラメーター
-
recognizer
ターゲット認識エンジン。
~PronunciationAssessmentConfig
構文: public inline virtual ~PronunciationAssessmentConfig ( );
オブジェクトを破棄します。
創造する
構文: public inline static std::shared_ptr< PronunciationAssessmentConfig > Create ( const std::string & referenceText , PronunciationAssessmentGradingSystem gradingSystem , PronunciationAssessmentGranularity granularity , bool enableMiscue );
パラメーターの詳細については、PronunciationAssessmentConfig のインスタンスを作成します。発音評価パラメーターを参照してください。
パラメーター
referenceText
参照テキストgradingSystem
スコア調整のポイント システムgranularity
評価の粒度enableMiscue
場合は、その他の計算を有効にします。 true の場合、発音された単語は参照テキストと比較され、比較に基づいて省略/挿入でマークされます。false の場合、認識されたテキストは常に参照テキストになります。
返品ポリシー
新しい PronunciationAssessmentConfig インスタンスへの共有ポインター。
創造する
構文: public inline static std::shared_ptr< PronunciationAssessmentConfig > Create ( const std::wstring & referenceText , PronunciationAssessmentGradingSystem gradingSystem , PronunciationAssessmentGranularity granularity , bool enableMiscue );
パラメーターの詳細については、PronunciationAssessmentConfig のインスタンスを作成します。の発音評価パラメーター表を参照してください。
パラメーター
referenceText
参照テキストgradingSystem
スコア調整のポイント システムgranularity
評価の粒度enableMiscue
その他の計算を有効にした場合
返品ポリシー
新しい PronunciationAssessmentConfig インスタンスへの共有ポインター。
CreateFromJson
構文: public inline static std::shared_ptr< PronunciationAssessmentConfig > CreateFromJson ( const std::string & json );
Json から PronunciationAssessmentConfig のインスタンスを作成します。 発音評価パラメーター 表を参照してください。
パラメーター
-
json
発音評価パラメーターを含む json 文字列です。
返品ポリシー
新しい PronunciationAssessmentConfig インスタンスへの共有ポインター。