定义对话框服务连接器对象的基本配置的类。
成员
~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 设置属性值。
参数
- 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。
退货
属性值。
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 );
设置代理配置。
注意:macOS 上不提供代理功能。 此函数对此平台不起作用。
参数
- proxyHostName代理服务器的主机名,而不使用协议方案(- [http://](http://))
- proxyPort代理服务器的端口号
- proxyUserName代理服务器的用户名
- proxyPassword代理服务器的密码
SetLanguage
语法:public inline void SetLanguage ( const std::string & lang );
将输入语言设置为连接器。
参数
- 
              lang指定要以 BCP-47 格式识别的口语的名称。
GetLanguage
语法:public inline std::string GetLanguage ( ) const;
获取连接器的输入语言。 语言以 BCP-47 格式指定。
退货
connetor 语言。