Class that defines base configurations for the dialog service connector object.
Members
~DialogServiceConfig
Syntax: public virtual ~DialogServiceConfig ( ) = default;
Default destructor.
operator SPXSPEECHCONFIGHANDLE
Syntax: public inline explicit operator SPXSPEECHCONFIGHANDLE ( ) const;
Internal operator used to get underlying handle value.
Returns
A handle.
SetProperty
Syntax: public inline void SetProperty ( const std::string & name , const std::string & value );
Sets a property value by name.
Parameters
nameThe property name.valueThe property value.
SetProperty
Syntax: public inline void SetProperty ( PropertyId id , const std::string & value );
Sets a property value by ID.
Parameters
idThe property id.valueThe property value.
GetProperty
Syntax: public inline std::string GetProperty ( const std::string & name ) const;
Gets a property value by name.
Parameters
nameThe parameter name.
Returns
The property value.
GetProperty
Syntax: public inline std::string GetProperty ( PropertyId id ) const;
Gets a property value by ID.
Parameters
idThe parameter id.
Returns
The property value.
SetServiceProperty
Syntax: public inline void SetServiceProperty ( const std::string & name , const std::string & value , ServicePropertyChannel channel );
Sets a property value that will be passed to service using the specified channel.
Parameters
nameThe property name.valueThe property value.channelThe channel used to pass the specified property to service.
SetProxy
Syntax: public inline void SetProxy ( const std::string & proxyHostName , uint32_t proxyPort , const std::string & proxyUserName , const std::string & proxyPassword );
Sets proxy configuration.
Note: Proxy functionality is not available on macOS. This function will have no effect on this platform.
Parameters
proxyHostNameThe host name of the proxy server, without the protocol scheme ([http://](http://))proxyPortThe port number of the proxy serverproxyUserNameThe user name of the proxy serverproxyPasswordThe password of the proxy server
SetLanguage
Syntax: public inline void SetLanguage ( const std::string & lang );
Set the input language to the connector.
Parameters
langSpecifies the name of spoken language to be recognized in BCP-47 format.
GetLanguage
Syntax: public inline std::string GetLanguage ( ) const;
Gets the input language to the connector. The language is specified in BCP-47 format.
Returns
The connetor language.