AutoDetectSourceLanguageConfig Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. AutoDetectSourceLanguageConfig
- com.
Implements
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
Auto |
fromLanguages(List<String> languages)
Creates an instance of the Auto |
static
Auto |
fromOpenRange()
Creates an instance of the Auto |
static
Auto |
fromSourceLanguageConfigs(List<SourceLanguageConfig> sourceLanguageConfigs)
Creates an instance of the Auto |
Safe |
getImpl()
Returns the Auto |
Methods inherited from java.lang.Object
Method Details
close
public void close()
Explicitly frees any external resource attached to the object
fromLanguages
public static AutoDetectSourceLanguageConfig fromLanguages(List<String> languages)
Creates an instance of the AutoDetectSourceLanguageConfig
Parameters:
Returns:
fromOpenRange
public static AutoDetectSourceLanguageConfig fromOpenRange()
Creates an instance of the AutoDetectSourceLanguageConfig with open range. Only
Returns:
fromSourceLanguageConfigs
public static AutoDetectSourceLanguageConfig fromSourceLanguageConfigs(List<SourceLanguageConfig> sourceLanguageConfigs)
Creates an instance of the AutoDetectSourceLanguageConfig with a list of SourceLanguageConfig
Parameters:
Returns:
getImpl
public SafeHandle getImpl()
Returns the AutoDetectSourceLanguageConfig
Returns: