Language

ProjectsAgentsModelFactory.VoiceAudioItem Method

Definition

Metadata for a single conversation item's audio segment. 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/content route.

public static Azure.AI.Projects.Agents.VoiceAudioItem VoiceAudioItem(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? startOffset = default, TimeSpan? duration = default, Uri blobUri = default);
public static Azure.AI.Projects.Agents.VoiceAudioItem VoiceAudioItem(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 VoiceAudioItem : 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.VoiceAudioItem
static member VoiceAudioItem : 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.VoiceAudioItem
Public Shared Function VoiceAudioItem (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 startOffset As Nullable(Of TimeSpan) = Nothing, Optional duration As Nullable(Of TimeSpan) = Nothing, Optional blobUri As Uri = Nothing) As VoiceAudioItem
Public Shared Function VoiceAudioItem (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 VoiceAudioItem

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.

startOffsetstartOffsetMs
Nullable<TimeSpan>

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

durationdurationMs
Nullable<TimeSpan>

The duration of the audio segment.

blobUri
Uri

For bring-your-own-storage (BYOS) recordings only: the URI of the recording 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/content route instead.

Returns

A new VoiceAudioItem instance for mocking.

Applies to