AutoDetectSourceLanguageResult Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. AutoDetectSourceLanguageResult
- com.
public final class AutoDetectSourceLanguageResult
Represents the result of auto detecting source languages Added in version 1.8.0
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Auto |
fromResult(SpeechRecognitionResult speechRecognitionResult)
Creates an instance of the Auto |
static
Auto |
fromResult(TranslationRecognitionResult translationRecognitionResult)
Creates an instance of the Auto |
java.lang.String |
getLanguage()
Get the language value |
Methods inherited from java.lang.Object
Method Details
fromResult
public static AutoDetectSourceLanguageResult fromResult(SpeechRecognitionResult speechRecognitionResult)
Creates an instance of the AutoDetectSourceLanguageResult from a speech recognition result
Parameters:
Returns:
fromResult
public static AutoDetectSourceLanguageResult fromResult(TranslationRecognitionResult translationRecognitionResult)
Creates an instance of the AutoDetectSourceLanguageResult from a translation recognition result.
Parameters:
Returns:
getLanguage
public String getLanguage()
Get the language value
Returns:
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應