Class DialogServiceConfig

    • Constructor Detail

      • DialogServiceConfig

        protected DialogServiceConfig​(long handleValue)
        Creates an instance of dialog service config.
        Parameters:
        handleValue - The native handle
    • Method Detail

      • 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:
        setProxy in class SpeechConfig
        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. Use empty string if no user name is needed.
        proxyPassword - the password of the proxy server. Use empty string if no user password is needed.
      • setProperty

        public void setProperty​(String name,
                                String value)
        Sets a named property as value.
        Overrides:
        setProperty in class SpeechConfig
        Parameters:
        name - the name of the property.
        value - the value.
      • setProperty

        public void setProperty​(PropertyId id,
                                String value)
        Sets the property by propertyId.
        Overrides:
        setProperty in class SpeechConfig
        Parameters:
        id - PropertyId of the property.
        value - The value.
      • getProperty

        public String getProperty​(String name)
        Gets a named property as value.
        Overrides:
        getProperty in class SpeechConfig
        Parameters:
        name - the name of the property.
        Returns:
        The value.
      • getProperty

        public String getProperty​(PropertyId id)
        Gets the property by propertyId.
        Overrides:
        getProperty in class SpeechConfig
        Parameters:
        id - PropertyId of the property.
        Returns:
        The value.
      • 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:
        setServiceProperty in class SpeechConfig
        Parameters:
        name - the property name.
        value - the property value.
        channel - the channel used to pass the specified property to service.
      • setLanguage

        public void setLanguage​(String value)
        Sets the language
        Parameters:
        value - the language identifier in BCP-47 format.
      • getLanguage

        public String getLanguage()
        Gets the language
        Returns:
        Returns the language.
      • getImpl

        public SafeHandle getImpl()
        Returns the dialog service configuration.
        Overrides:
        getImpl in class SpeechConfig
        Returns:
        The implementation of the config.