CodeBrowser / npm / audio-type
audio-type@2.4.2
// Detect the audio type of a Buffer/Uint8Array
$ npm install audio-type
downloads/wk
931,978
license
MIT
version
2.4.2
published
Jul 11, 2026
What is audio-type?
The audio-type package identifies the format of audio files by analyzing their binary data in a Buffer or Uint8Array. It detects common audio formats including MP3, WAV, FLAC, AAC, OGG, and many others by reading file signatures. Use this package when you need to programmatically determine an audio file's type without relying on file extensions or MIME type headers.
Keywords
#audio #type #detect #format #wav #mp3 #aac #flac #ogg #opus #m4a #aiff #midi #webm #amr #wma #caf #qoa
Maintainers
dfcreative, hemanth, dy