类 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 设置属性值。
参数
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 语言。