Share via


類別 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 用來將指定屬性傳遞至服務的通道。

SetProxy

語法: 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 伺服器的密碼

SetLanguage

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

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

參數

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

GetLanguage

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

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

傳回

connetor 語言。