ConversationTranslationResult class
Translation text result.
- Extends
Constructors
Conversation |
Properties
duration | Duration of recognized speech in 100 nano second increments. |
error |
In case of an unsuccessful recognition, provides details of the occurred error. |
language | Primary Language detected. |
language |
Primary Language detection confidence (Unknown, Low, Medium, High). |
offset | Offset of recognized speech in 100 nano second increments. |
original |
The original language this result was in. |
participant |
The unique identifier for the participant this result is for. |
properties | The set of properties exposed in the result. |
reason | Specifies status of the result. |
result |
Specifies the result identifier. |
speaker |
speaker id from conversation transcription/id scenarios |
text | Presents the recognized text in the result. |
translations | Presents the translation results. Each item in the dictionary represents a translation result in one of target languages, where the key is the name of the target language, in BCP-47 format, and the value is the translation text in the specified language. |
Inherited Methods
from |
Constructor Details
ConversationTranslationResult(string, Translations, string, string, ResultReason, string, number, number, string, string, PropertyCollection)
new ConversationTranslationResult(participantId: string, translations: Translations, originalLanguage?: string, resultId?: string, reason?: ResultReason, text?: string, duration?: number, offset?: number, errorDetails?: string, json?: string, properties?: PropertyCollection)
Parameters
- participantId
-
string
- translations
- Translations
- originalLanguage
-
string
- resultId
-
string
- reason
- ResultReason
- text
-
string
- duration
-
number
- offset
-
number
- errorDetails
-
string
- json
-
string
- properties
- PropertyCollection
Property Details
duration
Duration of recognized speech in 100 nano second increments.
number duration
Property Value
number
Duration of recognized speech in 100 nano second increments.
errorDetails
In case of an unsuccessful recognition, provides details of the occurred error.
string errorDetails
Property Value
string
a brief description of an error.
language
Primary Language detected.
string language
Property Value
string
language detected.
languageDetectionConfidence
Primary Language detection confidence (Unknown, Low, Medium, High).
string languageDetectionConfidence
Property Value
string
detection confidence strength.
offset
Offset of recognized speech in 100 nano second increments.
number offset
Property Value
number
Offset of recognized speech in 100 nano second increments.
originalLang
The original language this result was in.
string originalLang
Property Value
string
participantId
The unique identifier for the participant this result is for.
string participantId
Property Value
string
properties
The set of properties exposed in the result.
PropertyCollection properties
Property Value
The set of properties exposed in the result.
reason
Specifies status of the result.
ResultReason reason
Property Value
Specifies status of the result.
resultId
Specifies the result identifier.
string resultId
Property Value
string
Specifies the result identifier.
speakerId
speaker id from conversation transcription/id scenarios
string speakerId
Property Value
string
id of speaker in given result
text
Presents the recognized text in the result.
string text
Property Value
string
Presents the recognized text in the result.
translations
Presents the translation results. Each item in the dictionary represents a translation result in one of target languages, where the key is the name of the target language, in BCP-47 format, and the value is the translation text in the specified language.
Translations translations
Property Value
the current translation map that holds all translations requested.
Inherited Method Details
fromSpeechRecognitionResult(SpeechRecognitionResult)
static function fromSpeechRecognitionResult(result: SpeechRecognitionResult): TranslationRecognitionResult
Parameters
- result
- SpeechRecognitionResult
Returns
Inherited From TranslationRecognitionResult.fromSpeechRecognitionResult