ภาษา

ProjectsAgentsModelFactory.VoiceGeneratedAudioItem Method

Definition

Metadata for a conversation item's generated audio. For bring-your-own-storage (BYOS), the response includes blob_uri, a direct customer-storage URI without a SAS token, that the customer accesses with their own credentials. For Foundry-managed storage, blob_uri is absent and the bytes are streamed through the item's /audio/generated/content route.

public static Azure.AI.Projects.Agents.VoiceGeneratedAudioItem VoiceGeneratedAudioItem(string conversationId = default, string itemId = default, Azure.AI.Projects.Agents.VoiceAudioRole? role = default, Azure.AI.Projects.Agents.VoiceAudioContainerFormat? format = default, Azure.AI.Projects.Agents.VoiceAudioCodec? codec = default, int? sampleRate = default, int? channels = default, TimeSpan? startOffsetMs = default, TimeSpan? durationMs = default, Uri blobUri = default);
static member VoiceGeneratedAudioItem : string * string * Nullable<Azure.AI.Projects.Agents.VoiceAudioRole> * Nullable<Azure.AI.Projects.Agents.VoiceAudioContainerFormat> * Nullable<Azure.AI.Projects.Agents.VoiceAudioCodec> * Nullable<int> * Nullable<int> * Nullable<TimeSpan> * Nullable<TimeSpan> * Uri -> Azure.AI.Projects.Agents.VoiceGeneratedAudioItem
Public Shared Function VoiceGeneratedAudioItem (Optional conversationId As String = Nothing, Optional itemId As String = Nothing, Optional role As Nullable(Of VoiceAudioRole) = Nothing, Optional format As Nullable(Of VoiceAudioContainerFormat) = Nothing, Optional codec As Nullable(Of VoiceAudioCodec) = Nothing, Optional sampleRate As Nullable(Of Integer) = Nothing, Optional channels As Nullable(Of Integer) = Nothing, Optional startOffsetMs As Nullable(Of TimeSpan) = Nothing, Optional durationMs As Nullable(Of TimeSpan) = Nothing, Optional blobUri As Uri = Nothing) As VoiceGeneratedAudioItem

Parameters

conversationId
String

The id of the conversation the item belongs to.

itemId
String

The id of the item this audio belongs to.

role
Nullable<VoiceAudioRole>

The role the audio belongs to.

format
Nullable<VoiceAudioContainerFormat>

The container format of the audio.

codec
Nullable<VoiceAudioCodec>

The audio codec.

sampleRate
Nullable<Int32>

The sample rate in Hz.

channels
Nullable<Int32>

The number of audio channels.

startOffsetMs
Nullable<TimeSpan>

The offset from the session start at which this segment begins.

durationMs
Nullable<TimeSpan>

The duration of the audio segment.

blobUri
Uri

For bring-your-own-storage (BYOS) recordings only: the URI of the generated audio in the customer's own storage, without a SAS token. The customer downloads it using their own storage credentials. Absent for Foundry-managed storage, where the bytes are streamed via the item's /audio/generated/content route instead.

Returns

A new VoiceGeneratedAudioItem instance for mocking.

Applies to