DialogServiceConfig Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. SpeechConfig - com.
microsoft. cognitiveservices. speech. dialog. DialogServiceConfig
- com.
- com.
Implements
public class DialogServiceConfig
extends SpeechConfig
implements java.lang.AutoCloseable
Class that defines base configurations for dialog service connector. Note: close() must be called in order to release underlying resources held by the object.
Constructor Summary
Modifier | Constructor | Description |
---|---|---|
protected | DialogServiceConfig(long handleValue) |
Creates an instance of dialog service config. |
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
close()
Dispose of associated resources. |
Safe |
getImpl()
Returns the dialog service configuration. |
java.lang.String |
getLanguage()
Gets the language |
java.lang.String |
getProperty(PropertyId id)
Gets the property by property |
java.lang.String |
getProperty(String name)
Gets a named property as value. |
void |
setLanguage(String value)
Sets the language |
void |
setProperty(PropertyId id, String value)
Sets the property by property |
void |
setProperty(String name, String value)
Sets a named property as value. |
void |
setProxy(String proxyHostName, int proxyPort, String proxyUserName, String proxyPassword)
Sets proxy configuration Note: Proxy functionality is not available on macOS. |
void |
setServiceProperty(String name, String value, ServicePropertyChannel channel)
Sets a property value that will be passed to service using the specified channel. |
Methods inherited from SpeechConfig
Methods inherited from java.lang.Object
Constructor Details
DialogServiceConfig
protected DialogServiceConfig(long handleValue)
Creates an instance of dialog service config.
Parameters:
Method Details
close
public void close()
Dispose of associated resources.
Overrides:
DialogServiceConfig.close()getImpl
public SafeHandle getImpl()
Returns the dialog service configuration.
Overrides:
DialogServiceConfig.getImpl()Returns:
getLanguage
public String getLanguage()
Gets the language
Returns:
getProperty
public String getProperty(PropertyId id)
Gets the property by propertyId.
Overrides:
DialogServiceConfig.getProperty(PropertyId id)Parameters:
Returns:
getProperty
public String getProperty(String name)
Gets a named property as value.
Overrides:
DialogServiceConfig.getProperty(String name)Parameters:
Returns:
setLanguage
public void setLanguage(String value)
Sets the language
Parameters:
setProperty
public void setProperty(PropertyId id, String value)
Sets the property by propertyId.
Overrides:
DialogServiceConfig.setProperty(PropertyId id, String value)Parameters:
setProperty
public void setProperty(String name, String value)
Sets a named property as value.
Overrides:
DialogServiceConfig.setProperty(String name, String value)Parameters:
setProxy
public void setProxy(String proxyHostName, int proxyPort, String proxyUserName, String proxyPassword)
Sets proxy configuration Note: Proxy functionality is not available on macOS. This function will have no effect on this platform.
Overrides:
DialogServiceConfig.setProxy(String proxyHostName, int proxyPort, String proxyUserName, String proxyPassword)Parameters:
setServiceProperty
public void setServiceProperty(String name, String value, ServicePropertyChannel channel)
Sets a property value that will be passed to service using the specified channel.
Overrides:
DialogServiceConfig.setServiceProperty(String name, String value, ServicePropertyChannel channel)Parameters:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for