次の方法で共有


AutoDetectSourceLanguageResult Class

  • java.lang.Object
    • com.microsoft.cognitiveservices.speech.AutoDetectSourceLanguageResult

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 AutoDetectSourceLanguageResult fromResult(SpeechRecognitionResult speechRecognitionResult)

Creates an instance of the AutoDetectSourceLanguageResult from a speech recognition result

static AutoDetectSourceLanguageResult fromResult(TranslationRecognitionResult translationRecognitionResult)

Creates an instance of the AutoDetectSourceLanguageResult from a translation recognition result.

java.lang.String getLanguage()

Get the language value

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Method Details

fromResult

public static AutoDetectSourceLanguageResult fromResult(SpeechRecognitionResult speechRecognitionResult)

Creates an instance of the AutoDetectSourceLanguageResult from a speech recognition result

Parameters:

speechRecognitionResult - Specifies the speech recognition result This functionality was added in version 1.8.0.

Returns:

The AutoDetectSourceLanguageResult being created.

fromResult

public static AutoDetectSourceLanguageResult fromResult(TranslationRecognitionResult translationRecognitionResult)

Creates an instance of the AutoDetectSourceLanguageResult from a translation recognition result.

Parameters:

translationRecognitionResult - Specifies the translation recognition result.

Returns:

The AutoDetectSourceLanguageResult being created.

getLanguage

public String getLanguage()

Get the language value

Returns:

The language that is the result of auto detection

Applies to