Skip to content

Listens to song over microphone and identifies using audio fingerprint on ACRCloud.

License

Notifications You must be signed in to change notification settings

markbrouch/identify-song

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

identify-song

Listens to song over microphone and identifies using audio fingerprint on ACRCloud.

Installation

npm install identify-song

Dependencies

identify-song uses ACRCloud for audio fingerprinting technology API. Sign up for a free developer account to get the required API access keys.

identify-song requires the use of SoX to read audio from the microphone.

For Mac OS

brew install sox

For Linux

sudo apt-get install sox libsox-fmt-all

For Windows

download the binaries

Usage

identify-song is a function that when invoked creates a Promise delivering the JSON result from the ACRCloud API on success.

const identifySong = require('identify-song');

identifySong({
  host: '<ACRCloud host>', // i.e. 'us-west-2.api.acrcloud.com'
  access_key: '<ACRCloud access key>',
  access_secret: '<ACRCloud access secret'
})
.then(response => console.log(response))
.catch(error => console.error(error));

Tips

If you keep getting 'No result' code 1001 in the response, make sure your microphone volume is set appropriately (not too quiet, but not so loud that audio is cut off).

About

Listens to song over microphone and identifies using audio fingerprint on ACRCloud.

Resources

License

Stars

Watchers

Forks

Packages

No packages published