Class SourceLanguageConfig

  • All Implemented Interfaces:
    AutoCloseable

    public final class SourceLanguageConfig
    extends Object
    implements AutoCloseable
    Represents source language configuration used for specifying recognition source language. Note: close() must be called in order to release underlying resources held by the object. Added in version 1.8.0
    • Method Detail

      • fromLanguage

        public static SourceLanguageConfig fromLanguage​(String language)
        Creates an instance of the SourceLanguageConfig
        Parameters:
        language - Specifies the source language. This functionality was added in version 1.8.0.
        Returns:
        The source language configuration being created.
      • fromLanguage

        public static SourceLanguageConfig fromLanguage​(String language,
                                                        String endpointId)
        Creates an instance of the SourceLanguageConfig with source language and endpoint ID.
        Parameters:
        language - Specifies the source language.
        endpointId - Specifies the endpoint ID of a customized speech model that is used for speech recognition. This functionality was added in version 1.8.0.
        Returns:
        The source language configuration being created.
      • close

        public void close()
        Explicitly frees any external resource attached to the object
        Specified by:
        close in interface AutoCloseable
      • getImpl

        public SafeHandle getImpl()
        Returns the implementation of source language config object
        Returns:
        The implementation of the source language Config