Skip to main content

Interface: AudioInfo

Defined in: analyzer.ts:148

Properties​

channelCount​

channelCount: number;

Defined in: analyzer.ts:163

Number of channels in the file.


decoder​

decoder: "builtin" | "platform";

Defined in: analyzer.ts:160

'builtin': decoded by the bundled decoders (identical on iOS and Android). 'platform': decoded by the operating system (AudioToolbox on iOS, MediaCodec on Android).


duration​

duration: number;

Defined in: analyzer.ts:167

Duration in seconds.


format​

format: string;

Defined in: analyzer.ts:154

Detected codec: 'wav', 'flac', 'mp3', 'vorbis' (built-in), or what the platform decoder reports, e.g. 'aac', 'alac', 'opus', 'aiff'.


frames​

frames: number;

Defined in: analyzer.ts:165

Total number of frames (samples per channel).


sampleRate​

sampleRate: number;

Defined in: analyzer.ts:161