定義語音辨識或語音合成混合式(雲端和內嵌)組態的類別。
成員
運算子 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指定輸出格式識別碼
GetSpeechSynthesisOutputFormat
語法:public inline std::string GetSpeechSynthesisOutputFormat ( ) const;
取得語音合成輸出格式。
退貨
語音合成輸出格式。
SetProperty
語法:public inline void SetProperty ( const std::string & name , const std::string & value );
依名稱設定屬性值。
參數
name屬性名稱。value屬性值。
SetProperty
語法:public inline void SetProperty ( PropertyId id , const std::string & value );
依標識碼設定屬性值。
參數
id屬性識別碼。value屬性值。
GetProperty
語法:public inline std::string GetProperty ( const std::string & name ) const;
依名稱取得屬性值。
參數
-
name參數名稱。
退貨
屬性值。
GetProperty
語法:public inline std::string GetProperty ( PropertyId id ) const;
依標識碼取得屬性值。
參數
-
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內嵌語音設定的共享智能指標。
退貨
新混合式語音組態實例的共享指標。