audio-metadata | Extracts meta data from various audio containers | Machine Learning library
kandi X-RAY | audio-metadata Summary
kandi X-RAY | audio-metadata Summary
The purpose of this library is to be very fast and small. It's suitable for server-side or client-side. Really any platform that supports ArrayBuffer and its ilk (Uint8Array, etc.). I wrote it because the other libraries were large and very robust; I just needed something that could extract the metadata out without requiring 30KB of JavaScript. audio-metadata.min.js comes in at 6.1K/2.1K minified/gzipped. To accomplish the small size and speed, it sacrifices several things. As such, the code is a bit abstruse, in that you'll see some magic numbers, like offset += 94 where it's ignoring a bunch of header data to get to the good stuff. Don't judge me based on this code. It works and it's tested; it's just hard to read. Of course, since this isn't an actual parser, invalid files will also work. This means, for example, you could only read the first couple hundred bytes of an MP3 file and still extract the metadata from it, rather than requiring actual valid MP3 data.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of audio-metadata
audio-metadata Key Features
audio-metadata Examples and Code Snippets
Community Discussions
Trending Discussions on audio-metadata
QUESTION
I am very new to JavaScript, and am trying to extract audio metadata from files. To do this, I am trying to implement the audio-metadata library into my code (https://github.com/tmont/audio-metadata). However, when I try to run the example code, I keep getting the error saying "variable is not defined".
...ANSWER
Answered 2017-May-02 at 03:33The documentation for audio-metadata
seems to be incorrect, you should be using AudioMetadata
instead of AudioMetaData
.
Specifically, the script that generates the file audio-metadata.min.js
that you're using can be found in the project's package.json
file:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install audio-metadata
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page