SourceLanguageConfig Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. SourceLanguageConfig
- com.
Implements
public final class SourceLanguageConfig
implements java.lang.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 Summary
Modifier and Type | Method and Description |
---|---|
void |
close()
Explicitly frees any external resource attached to the object |
static
Source |
fromLanguage(String language)
Creates an instance of the Source |
static
Source |
fromLanguage(String language, String endpointId)
Creates an instance of the Source |
Safe |
getImpl()
Returns the implementation of source language config object |
Methods inherited from java.lang.Object
Method Details
close
public void close()
Explicitly frees any external resource attached to the object
fromLanguage
public static SourceLanguageConfig fromLanguage(String language)
Creates an instance of the SourceLanguageConfig
Parameters:
Returns:
fromLanguage
public static SourceLanguageConfig fromLanguage(String language, String endpointId)
Creates an instance of the SourceLanguageConfig with source language and endpoint ID.
Parameters:
Returns:
getImpl
public SafeHandle getImpl()
Returns the implementation of source language config object
Returns:
Applies to
Azure SDK for Java