Audio

class Audio(val data: ByteArray, val format: String) : MediaContent(source)

Represents audio content stored as byte array.

Constructors

Link copied to clipboard
constructor(data: ByteArray, format: String)

Properties

Link copied to clipboard

The audio data as byte array.

Link copied to clipboard
open override val format: String

The audio file format.

Functions

Link copied to clipboard
open override fun getMimeType(): String

Retrieves the MIME type of the media content.

Link copied to clipboard
open override fun toBase64(): String

Converts the media content to base64 encoded string.