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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour