Language

VoiceAudioItem Class

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 class VoiceAudioItem : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.Agents.VoiceAudioItem>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.Agents.VoiceAudioItem>
type VoiceAudioItem = class
    interface IJsonModel<VoiceAudioItem>
    interface IPersistableModel<VoiceAudioItem>
Public Class VoiceAudioItem
Implements IJsonModel(Of VoiceAudioItem), IPersistableModel(Of VoiceAudioItem)
Inheritance
VoiceAudioItem
Implements

Properties

Name Description
BlobUri

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.

Channels

The number of audio channels.

Codec

The audio codec.

ConversationId

The id of the conversation the item belongs to.

DurationMs

The duration of the audio segment.

Format

The container format of the audio.

ItemId

The id of the item this audio belongs to.

Role

The role the audio belongs to.

SampleRate

The sample rate in Hz.

StartOffsetMs

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

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Operators

Name Description
Explicit(ClientResult to VoiceAudioItem)

Explicit Interface Implementations

Name Description
IJsonModel<VoiceAudioItem>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<VoiceAudioItem>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<VoiceAudioItem>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<VoiceAudioItem>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<VoiceAudioItem>.Write(ModelReaderWriterOptions)

Applies to