Interface AudioDetails

Represents detailed metadata about an audio file.

interface AudioDetails {
    bitrate: number;
    codec: string;
    codecProfile: string;
    container: string;
    duration: number;
    lossless: boolean;
    numberOfChannels: number;
    numberOfSamples: number;
    sampleRate: number;
    tagTypes: string[];
    trackInfo: string[];
}

Properties

bitrate: number

The bitrate of the audio in bits per second.

codec: string

The codec used for audio encoding.

codecProfile: string

The profile of the codec used.

container: string

The container format of the audio file.

duration: number

The duration of the audio in seconds.

lossless: boolean

Indicates whether the audio is lossless.

numberOfChannels: number

The number of audio channels.

numberOfSamples: number

The total number of audio samples.

sampleRate: number

The sample rate of the audio in Hz.

tagTypes: string[]

Types of tags present in the audio file.

trackInfo: string[]

Information about the audio track.