AutoDetectSourceLanguageConfig Class

Definition

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

public class AutoDetectSourceLanguageConfig
Inheritance
java.lang.Object
AutoCloseable
AutoDetectSourceLanguageConfig

Methods

close()

Explicitly frees any external resource attached to the object

fromLanguages(List<String> languages)

Creates an instance of the AutoDetectSourceLanguageConfig

fromOpenRange()

Creates an instance of the AutoDetectSourceLanguageConfig with open range Note: only SpeechSynthesizer supports source language auto detection from open range, for Recognizer, please use AutoDetectSourceLanguageConfig with specific source languages. Added in 1.13.0

fromSourceLanguageConfigs(List<SourceLanguageConfig> sourceLanguageConfigs)

Creates an instance of the AutoDetectSourceLanguageConfig with a list of SourceLanguageConfig

Applies to