acoustid
Get music metadata from AcoustID Web Service
Last updated 6 years ago by parshap .
Public Domain · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install acoustid 
SYNC missed versions from official npm registry.

node-acoustid

Get MusicBrainz metadata for a given audio file via the AcoustID Web Service.

Example

var acoustid = require("acoustid");
acoustid("./audio.mp3", { key: "8XaBELgH" }, callback);
function callback(err, results) {
	if (err) throw err;
	var artist = results[0].recordings[0].artists[0].name;
	console.log(artist);
}

Documentation

acoustid(file, options, callback)

Looks up information about the given audio file.

File must be the path to an audio file.

Options must be an object with the following keys:

  • key: Your AcoustID Web Service API Key (required)
  • meta: Meta parameter used in AcoustID API call (optional, default: all meta data) (see docs)
  • fpcalc: Passed to fpcalc as options (optional, see fpcalc docs)

Callback must be a function that will be called with callback(err, results).

Installation

This module depends on node-fpcalc to calculate audio fingerprints. The fpcalc command-line tool must be installed. This is often available via your package manager (e.g., apt-get install libchromaprint-tools or brew install chromaprint).

npm install acoustid

Current Tags

  • 1.2.1                                ...           latest (6 years ago)

4 Versions

  • 1.2.0                                ...           6 years ago
  • 1.2.1                                ...           6 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 4
Last Month 2
Dependencies (3)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |