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
Azure SDK for Java