Share via


ItemContentInputAudio Class

Definition

An audio input to the model.

public class ItemContentInputAudio : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContent, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContentInputAudio>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContentInputAudio>
type ItemContentInputAudio = class
    inherit ItemContent
    interface IUtf8JsonSerializable
    interface IJsonModel<ItemContentInputAudio>
    interface IPersistableModel<ItemContentInputAudio>
Public Class ItemContentInputAudio
Inherits ItemContent
Implements IJsonModel(Of ItemContentInputAudio), IPersistableModel(Of ItemContentInputAudio)
Inheritance
ItemContentInputAudio
Implements

Constructors

Name Description
ItemContentInputAudio()

Initializes a new instance of ItemContentInputAudio for deserialization.

ItemContentInputAudio(ItemContentType, IDictionary<String,BinaryData>, String, ItemContentInputAudioFormat)

Initializes a new instance of ItemContentInputAudio.

ItemContentInputAudio(String, ItemContentInputAudioFormat)

Initializes a new instance of ItemContentInputAudio.

Properties

Name Description
Data

Base64-encoded audio data.

Format

The format of the audio data. Currently supported formats are mp3 and wav.

Type

Gets or sets the type.

(Inherited from ItemContent)

Methods

Name Description
DeserializeItemContentInputAudio(JsonElement, ModelReaderWriterOptions)
FromResponse(Response)

Deserializes the model from a raw response.

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
ToRequestContent()

Convert into a RequestContent.

Explicit Interface Implementations

Name Description
IJsonModel<ItemContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from ItemContent)
IJsonModel<ItemContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from ItemContent)
IJsonModel<ItemContentInputAudio>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ItemContentInputAudio>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ItemContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from ItemContent)
IPersistableModel<ItemContent>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from ItemContent)
IPersistableModel<ItemContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from ItemContent)
IPersistableModel<ItemContentInputAudio>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ItemContentInputAudio>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ItemContentInputAudio>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to