Class SourceLanguageConfig
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.SourceLanguageConfig
-
- All Implemented Interfaces:
AutoCloseable
public final class SourceLanguageConfig extends Object implements 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Explicitly frees any external resource attached to the objectstatic SourceLanguageConfigfromLanguage(String language)Creates an instance of the SourceLanguageConfigstatic SourceLanguageConfigfromLanguage(String language, String endpointId)Creates an instance of the SourceLanguageConfig with source language and endpoint ID.SafeHandlegetImpl()Returns the implementation of source language config object
-
-
-
Method Detail
-
fromLanguage
public static SourceLanguageConfig fromLanguage(String language)
Creates an instance of the SourceLanguageConfig- Parameters:
language- Specifies the source language. This functionality was added in version 1.8.0.- Returns:
- The source language configuration being created.
-
fromLanguage
public static SourceLanguageConfig fromLanguage(String language, String endpointId)
Creates an instance of the SourceLanguageConfig with source language and endpoint ID.- Parameters:
language- Specifies the source language.endpointId- Specifies the endpoint ID of a customized speech model that is used for speech recognition. This functionality was added in version 1.8.0.- Returns:
- The source language configuration 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 implementation of source language config object- Returns:
- The implementation of the source language Config
-
-