Table of Contents

Class AudioContent

Namespace
Mythosia.AI.Models.Messages
Assembly
Mythosia.AI.Abstractions.dll

Audio content in a message (for future expansion)

public class AudioContent : MessageContent
Inheritance
AudioContent
Inherited Members

Constructors

AudioContent(byte[], string)

public AudioContent(byte[] data, string mimeType)

Parameters

data byte[]
mimeType string

Properties

Data

public byte[]? Data { get; set; }

Property Value

byte[]

Duration

public TimeSpan Duration { get; set; }

Property Value

TimeSpan

MimeType

public string? MimeType { get; set; }

Property Value

string

Type

public override string Type { get; }

Property Value

string

Methods

EstimateTokens()

Estimates the token count for this content

public override uint EstimateTokens()

Returns

uint

GetDescription()

Gets a display-friendly description of the content

public override string GetDescription()

Returns

string

ToRequestFormat(string)

Converts the content to the appropriate format for the specified AI provider

public override object ToRequestFormat(string provider)

Parameters

provider string

Returns

object