ConversationTranslationResult class

翻訳テキストの結果。

Extends

コンストラクター

ConversationTranslationResult(string, Translations, string, string, ResultReason, string, number, number, string, string, PropertyCollection)

プロパティ

duration

認識された音声の 100 ナノ秒単位の継続時間。

errorDetails

認識に失敗した場合は、発生したエラーの詳細を提供します。

language

プライマリ言語が検出されました。

languageDetectionConfidence

プライマリ言語検出の信頼度 (不明、低、中、高)。

offset

認識された音声を 100 ナノ秒単位でオフセットします。

originalLang

この結果の元の言語。

participantId

この結果の対象となる参加者の一意識別子。

properties

結果で公開されるプロパティのセット。

reason

結果の状態を指定します。

resultId

結果識別子を指定します。

speakerId

会話の文字起こし/ID シナリオの話者 ID

text

認識されたテキストを結果に表示します。

translations

翻訳結果を表示します。 ディクショナリ内の各項目は、翻訳結果をターゲット言語の 1 つで表します。ここで、キーはターゲット言語の名前 (BCP-47 形式)、値は指定した言語の翻訳テキストです。

継承されたメソッド

fromSpeechRecognitionResult(SpeechRecognitionResult)

コンストラクターの詳細

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)

パラメーター

participantId

string

translations
Translations
originalLanguage

string

resultId

string

reason
ResultReason
text

string

duration

number

offset

number

errorDetails

string

json

string

properties
PropertyCollection

プロパティの詳細

duration

認識された音声の 100 ナノ秒単位の継続時間。

number duration

プロパティ値

number

認識された音声の 100 ナノ秒単位の継続時間。

errorDetails

認識に失敗した場合は、発生したエラーの詳細を提供します。

string errorDetails

プロパティ値

string

エラーの簡単な説明。

language

プライマリ言語が検出されました。

string language

プロパティ値

string

言語が検出されました。

languageDetectionConfidence

プライマリ言語検出の信頼度 (不明、低、中、高)。

string languageDetectionConfidence

プロパティ値

string

検出の信頼度の強さ。

offset

認識された音声を 100 ナノ秒単位でオフセットします。

number offset

プロパティ値

number

認識された音声を 100 ナノ秒単位でオフセットします。

originalLang

この結果の元の言語。

string originalLang

プロパティ値

string

participantId

この結果の対象となる参加者の一意識別子。

string participantId

プロパティ値

string

properties

結果で公開されるプロパティのセット。

PropertyCollection properties

プロパティ値

結果で公開されるプロパティのセット。

reason

結果の状態を指定します。

ResultReason reason

プロパティ値

結果の状態を指定します。

resultId

結果識別子を指定します。

string resultId

プロパティ値

string

結果識別子を指定します。

speakerId

会話の文字起こし/ID シナリオの話者 ID

string speakerId

プロパティ値

string

指定された結果の話者の ID

text

認識されたテキストを結果に表示します。

string text

プロパティ値

string

認識されたテキストを結果に表示します。

translations

翻訳結果を表示します。 ディクショナリ内の各項目は、翻訳結果をターゲット言語の 1 つで表します。ここで、キーはターゲット言語の名前 (BCP-47 形式)、値は指定した言語の翻訳テキストです。

Translations translations

プロパティ値

要求されたすべての翻訳を保持する現在の翻訳マップ。

継承済みメソッドの詳細

fromSpeechRecognitionResult(SpeechRecognitionResult)

static function fromSpeechRecognitionResult(result: SpeechRecognitionResult): TranslationRecognitionResult

パラメーター

戻り値

TranslationRecognitionResult.fromSpeechRecognitionResult から継承