音声認識または音声合成用のハイブリッド (クラウドおよび埋め込み) 構成を定義するクラス。
メンバー
演算子 SPXSPEECHCONFIGHANDLE
構文: public inline explicit operator SPXSPEECHCONFIGHANDLE ( ) const;
基になるハンドル値を取得するために使用される内部演算子。
返品ポリシー
ハンドル。
SetSpeechRecognitionOutputFormat
構文: public inline void SetSpeechRecognitionOutputFormat ( OutputFormat format );
音声認識の出力形式を設定します。
パラメーター
- 音声認識の出力形式 (単純または詳細) を
formatします。
GetSpeechRecognitionOutputFormat
構文: public inline OutputFormat GetSpeechRecognitionOutputFormat ( ) const;
音声認識の出力形式を取得します。
返品ポリシー
音声認識の出力形式 (単純または詳細)。
SetSpeechSynthesisOutputFormat
構文: public inline void SetSpeechSynthesisOutputFormat ( SpeechSynthesisOutputFormat formatId );
音声合成出力形式 (Riff16Khz16BitMonoPcm など) を設定します。
パラメーター
-
formatId出力形式 ID を指定します
GetSpeechSynthesisOutputFormat
構文: public inline std::string GetSpeechSynthesisOutputFormat ( ) const;
音声合成の出力形式を取得します。
返品ポリシー
音声合成の出力形式。
プロパティを設定
構文: public inline void SetProperty ( const std::string & name , const std::string & value );
プロパティ値を名前で設定します。
パラメーター
nameプロパティ名。valueプロパティ値です。
プロパティを設定
構文: public inline void SetProperty ( PropertyId id , const std::string & value );
ID でプロパティ値を設定します。
パラメーター
idプロパティ ID。valueプロパティ値です。
GetProperty
構文: public inline std::string GetProperty ( const std::string & name ) const;
名前でプロパティ値を取得します。
パラメーター
-
nameパラメーター名。
返品ポリシー
プロパティ値。
GetProperty
構文: public inline std::string GetProperty ( PropertyId id ) const;
ID でプロパティ値を取得します。
パラメーター
-
idパラメーター ID。
返品ポリシー
プロパティ値。
~HybridSpeechConfig
構文: public virtual ~HybridSpeechConfig ( ) = default;
オブジェクトを破棄します。
FromConfigs
構文: public inline static std::shared_ptr< HybridSpeechConfig > FromConfigs ( std::shared_ptr< SpeechConfig > cloudSpeechConfig , std::shared_ptr< EmbeddedSpeechConfig > embeddedSpeechConfig );
指定したクラウドと埋め込み音声構成を使用して、ハイブリッド音声構成のインスタンスを作成します。
パラメーター
cloudSpeechConfigクラウド音声構成の共有スマート ポインター。embeddedSpeechConfig埋め込まれた音声構成の共有スマート ポインター。
返品ポリシー
新しいハイブリッド音声構成インスタンスへの共有ポインター。