類別 Dialog::D ialogServiceConfig

類別,定義對話服務連接器物件的基底組態。

成員

~DialogServiceConfig

語法:public virtual ~DialogServiceConfig ( ) = default;

默認解構函式。

運算子 SPXSPEECHCONFIGHANDLE

語法:public inline explicit operator SPXSPEECHCONFIGHANDLE ( ) 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 參數標識碼。

退貨

屬性值。

SetServiceProperty

語法:public inline void SetServiceProperty ( const std::string & name , const std::string & value , ServicePropertyChannel channel );

設定將使用指定通道傳遞至服務的屬性值。

參數

  • name 屬性名稱。

  • value 屬性值。

  • channel 用來將指定屬性傳遞至服務的通道。

設定代理伺服器

語法:public inline void SetProxy ( const std::string & proxyHostName , uint32_t proxyPort , const std::string & proxyUserName , const std::string & proxyPassword );

設定 Proxy 組態。

注意:macOS 上無法使用 Proxy 功能。 此函式對這個平台沒有任何作用。

參數

  • proxyHostName Proxy 伺服器的主機名,不含通訊協定設定 ([http://](http://))

  • proxyPort Proxy 伺服器的埠號碼

  • proxyUserName Proxy 伺服器的用戶名稱

  • proxyPassword Proxy 伺服器的密碼

設定語言

語法:public inline void SetLanguage ( const std::string & lang );

將輸入語言設定為連接器。

參數

  • lang 指定要以BCP-47格式辨識的口語名稱。

GetLanguage

語法:public inline std::string GetLanguage ( ) const;

取得連接器的輸入語言。 語言是以 BCP-47 格式指定。

退貨

Connetor 語言。