AutoDetectSourceLanguageConfig Class

  • java.lang.Object
    • com.microsoft.cognitiveservices.speech.AutoDetectSourceLanguageConfig

Implements

java.lang.AutoCloseable

public final class AutoDetectSourceLanguageConfig
implements java.lang.AutoCloseable

Represents auto detect source language configuration used for specifying the possible source language candidates Note: close() must be called in order to release underlying resources held by the object. Updated in version 1.13.0

Method Summary

Modifier and Type Method and Description
void close()

Explicitly frees any external resource attached to the object

static AutoDetectSourceLanguageConfig fromLanguages(List<String> languages)

Creates an instance of the AutoDetectSourceLanguageConfig

static AutoDetectSourceLanguageConfig fromOpenRange()

Creates an instance of the AutoDetectSourceLanguageConfig with open range.

static AutoDetectSourceLanguageConfig fromSourceLanguageConfigs(List<SourceLanguageConfig> sourceLanguageConfigs)

Creates an instance of the AutoDetectSourceLanguageConfig with a list of SourceLanguageConfig

SafeHandle getImpl()

Returns the AutoDetectSourceLanguageConfig

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Method Details

close

public void close()

Explicitly frees any external resource attached to the object

fromLanguages

public static AutoDetectSourceLanguageConfig fromLanguages(List languages)

Creates an instance of the AutoDetectSourceLanguageConfig

Parameters:

languages - Specifies the source language candidates. This functionality was added in version 1.8.0.

Returns:

The auto detect source language configuration being created.

fromOpenRange

public static AutoDetectSourceLanguageConfig fromOpenRange()

Creates an instance of the AutoDetectSourceLanguageConfig with open range. Only

Returns:

The auto detect source language configuration being created.

fromSourceLanguageConfigs

public static AutoDetectSourceLanguageConfig fromSourceLanguageConfigs(List sourceLanguageConfigs)

Creates an instance of the AutoDetectSourceLanguageConfig with a list of SourceLanguageConfig

Parameters:

sourceLanguageConfigs - Specifies the source language config list This functionality was added in version 1.8.0.

Returns:

The AutoDetectSourceLanguageConfig being created.

getImpl

public SafeHandle getImpl()

Returns the AutoDetectSourceLanguageConfig

Returns:

The implementation of the AutoDetectSourceLanguageConfig object

Applies to