你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈