VoiceGeneratedAudioItem interface

對話項目產生音訊的元資料。 對於自帶儲存(BYOS),回應包含 blob_uri,一個直接的客戶儲存 URI,無需 SAS 令牌,客戶需以自己的憑證存取。 對於 Foundry 管理的儲存,則 blob_uri 不存在,位元組會透過該項目 /audio/generated/content 的路由串流。

屬性

blob_uri

僅限自帶儲存(BYOS)錄音:使用用戶自有儲存空間中生成音訊的 URI,且不使用 SAS 令牌。 客戶會用自己的儲存憑證下載。 在 Foundry 管理的儲存中則缺席,因為位元組是透過項目的 /audio/generated/content 路由串流傳輸。

channels

音訊頻道數量。

codec

音訊編碼器。

conversation_id

該物品所屬對話的ID。

duration_ms

音頻片段的長度。

format

音訊的容器格式。

item_id

這個音訊所屬物品的ID。

role

音訊所屬的角色。

sample_rate

取樣率以赫茲為單位。

start_offset_ms

與本段開始的會話的偏移量。

屬性詳細資料

blob_uri

僅限自帶儲存(BYOS)錄音:使用用戶自有儲存空間中生成音訊的 URI,且不使用 SAS 令牌。 客戶會用自己的儲存憑證下載。 在 Foundry 管理的儲存中則缺席,因為位元組是透過項目的 /audio/generated/content 路由串流傳輸。

blob_uri?: string

屬性值

string

channels

音訊頻道數量。

channels?: number

屬性值

number

codec

音訊編碼器。

codec?: VoiceAudioCodec

屬性值

conversation_id

該物品所屬對話的ID。

conversation_id: string

屬性值

string

duration_ms

音頻片段的長度。

duration_ms?: number

屬性值

number

format

音訊的容器格式。

format?: "wav"

屬性值

"wav"

item_id

這個音訊所屬物品的ID。

item_id: string

屬性值

string

role

音訊所屬的角色。

role?: VoiceAudioRole

屬性值

sample_rate

取樣率以赫茲為單位。

sample_rate?: number

屬性值

number

start_offset_ms

與本段開始的會話的偏移量。

start_offset_ms?: number

屬性值

number