Class AutoDetectSourceLanguageConfig
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.AutoDetectSourceLanguageConfig
-
- All Implemented Interfaces:
AutoCloseable
public final class AutoDetectSourceLanguageConfig extends Object implements 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Explicitly frees any external resource attached to the objectstatic AutoDetectSourceLanguageConfigfromLanguages(List<String> languages)Creates an instance of the AutoDetectSourceLanguageConfigstatic AutoDetectSourceLanguageConfigfromOpenRange()Creates an instance of the AutoDetectSourceLanguageConfig with open range.static AutoDetectSourceLanguageConfigfromSourceLanguageConfigs(List<SourceLanguageConfig> sourceLanguageConfigs)Creates an instance of the AutoDetectSourceLanguageConfig with a list of SourceLanguageConfigSafeHandlegetImpl()Returns the AutoDetectSourceLanguageConfig
-
-
-
Method Detail
-
fromOpenRange
public static AutoDetectSourceLanguageConfig fromOpenRange()
Creates an instance of the AutoDetectSourceLanguageConfig with open range. Only- Returns:
- The auto detect source language configuration being created.
- See Also:
- SpeechSynthesizer supports source language auto detection from open range. For, Recognizer, please use AutoDetectSourceLanguageConfig with specific source languages. Added in 1.13.0
-
fromLanguages
public static AutoDetectSourceLanguageConfig fromLanguages(List<String> 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.
-
fromSourceLanguageConfigs
public static AutoDetectSourceLanguageConfig fromSourceLanguageConfigs(List<SourceLanguageConfig> 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.
-
close
public void close()
Explicitly frees any external resource attached to the object- Specified by:
closein interfaceAutoCloseable
-
getImpl
public SafeHandle getImpl()
Returns the AutoDetectSourceLanguageConfig- Returns:
- The implementation of the AutoDetectSourceLanguageConfig object
-
-