AutoDetectSourceLanguageResult class

Output format

Properties

language
languageDetectionConfidence

Methods

fromConversationTranscriptionResult(ConversationTranscriptionResult)

Creates an instance of AutoDetectSourceLanguageResult object from a ConversationTranscriptionResult instance.

fromResult(SpeechRecognitionResult)

Creates an instance of AutoDetectSourceLanguageResult object from a SpeechRecognitionResult instance.

Property Details

language

string language

Property Value

string

languageDetectionConfidence

string languageDetectionConfidence

Property Value

string

Method Details

fromConversationTranscriptionResult(ConversationTranscriptionResult)

Creates an instance of AutoDetectSourceLanguageResult object from a ConversationTranscriptionResult instance.

static function fromConversationTranscriptionResult(result: ConversationTranscriptionResult): AutoDetectSourceLanguageResult

Parameters

result
ConversationTranscriptionResult

The transcription result.

Returns

AutoDetectSourceLanguageResult object being created.

fromResult(SpeechRecognitionResult)

Creates an instance of AutoDetectSourceLanguageResult object from a SpeechRecognitionResult instance.

static function fromResult(result: SpeechRecognitionResult): AutoDetectSourceLanguageResult

Parameters

result
SpeechRecognitionResult

The recognition result.

Returns

AutoDetectSourceLanguageResult object being created.