DialogServiceConfig class

Class that defines base configurations for dialog service connector

Properties

applicationId

Sets the corresponding backend application identifier.

DialogTypes
speechRecognitionLanguage

Returns the configured language. Gets/Sets the input language.

Methods

getProperty(string | PropertyId, string)

Returns the current value of an arbitrary property.

setProperty(string | PropertyId, string)

Sets an arbitrary property.

setProxy(string, number)

Sets the proxy configuration. Only relevant in Node.js environments. Added in version 1.4.0.

setProxy(string, number, string, string)

Sets the proxy configuration. Only relevant in Node.js environments. Added in version 1.4.0.

setServiceProperty(string, string, ServicePropertyChannel)

Property Details

applicationId

Sets the corresponding backend application identifier.

any applicationId

Property Value

any

DialogTypes

static DialogTypes: any

Property Value

any

speechRecognitionLanguage

Returns the configured language. Gets/Sets the input language.

string speechRecognitionLanguage

Property Value

string

Method Details

getProperty(string | PropertyId, string)

Returns the current value of an arbitrary property.

function getProperty(name: string | PropertyId, def?: string)

Parameters

name

string | PropertyId

The name of the property to query.

def

string

The value to return in case the property is not known.

Returns

string

The current value, or provided default, of the given property.

setProperty(string | PropertyId, string)

Sets an arbitrary property.

function setProperty(name: string | PropertyId, value: string)

Parameters

name

string | PropertyId

The name of the property to set.

value

string

The new value of the property.

setProxy(string, number)

Sets the proxy configuration. Only relevant in Node.js environments. Added in version 1.4.0.

function setProxy(proxyHostName: string, proxyPort: number)

Parameters

proxyHostName

string

The host name of the proxy server.

proxyPort

number

The port number of the proxy server.

setProxy(string, number, string, string)

Sets the proxy configuration. Only relevant in Node.js environments. Added in version 1.4.0.

function setProxy(proxyHostName: string, proxyPort: number, proxyUserName: string, proxyPassword: string)

Parameters

proxyHostName

string

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

proxyPort

number

proxyUserName

string

The user name of the proxy server.

proxyPassword

string

The password of the proxy server.

setServiceProperty(string, string, ServicePropertyChannel)

function setServiceProperty(name: string, value: string, channel: ServicePropertyChannel)

Parameters

name

string

value

string