class Dialog::DialogServiceConfig

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

  • name The property name.

  • value The property value.

SetProperty

Syntax: public inline void SetProperty ( PropertyId id , const std::string & value );

Sets a property value by ID.

Parameters

  • id The property id.

  • value The property value.

GetProperty

Syntax: public inline std::string GetProperty ( const std::string & name ) const;

Gets a property value by name.

Parameters

  • name The parameter name.

Returns

The property value.

GetProperty

Syntax: public inline std::string GetProperty ( PropertyId id ) const;

Gets a property value by ID.

Parameters

  • id The 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

  • name The property name.

  • value The property value.

  • channel The 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

  • proxyHostName The host name of the proxy server, without the protocol scheme (http://)

  • proxyPort The port number of the proxy server

  • proxyUserName The user name of the proxy server

  • proxyPassword The password of the proxy server

SetLanguage

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

Set the input language to the connector.

Parameters

  • lang Specifies 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.