Getting audio duration with Mediabunny
Mediabunny can extract the duration of an audio file. It works in browser, Node.js, and Bun environments.Getting audio duration
Usage
Using with local files
For local files, useFileSource instead of UrlSource: