RealtimeServerEventResponseAudioTranscriptDone interface

當模型生成的音訊輸出進行串流後,會回傳。 當回應被中斷、不完整或取消時也會發出。

Extends

屬性

content_index

項目內容陣列中內容部分的索引。

event_id

伺服器事件的唯一 ID。

item_id

項目的標識碼。

output_index

回應中輸出項目的索引。

response_id

回應的識別。

transcript

音頻的最終逐字稿。

type

事件類型 必須是 response.output_audio_transcript.done。

屬性詳細資料

content_index

項目內容陣列中內容部分的索引。

content_index: number

屬性值

number

event_id

伺服器事件的唯一 ID。

event_id: string

屬性值

string

item_id

項目的標識碼。

item_id: string

屬性值

string

output_index

回應中輸出項目的索引。

output_index: number

屬性值

number

response_id

回應的識別。

response_id: string

屬性值

string

transcript

音頻的最終逐字稿。

transcript: string

屬性值

string

type

事件類型 必須是 response.output_audio_transcript.done。

type: "response.output_audio_transcript.done"

屬性值

"response.output_audio_transcript.done"