https://github.com/markbrouch/identify-song
Listens to song over microphone and identifies using audio fingerprint on ACRCloud.
https://github.com/markbrouch/identify-song
Last synced: 11 months ago
JSON representation
Listens to song over microphone and identifies using audio fingerprint on ACRCloud.
- Host: GitHub
- URL: https://github.com/markbrouch/identify-song
- Owner: markbrouch
- License: mit
- Created: 2016-10-07T22:41:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-07T23:38:54.000Z (over 9 years ago)
- Last Synced: 2025-07-07T07:45:33.515Z (12 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 5
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# identify-song
Listens to song over microphone and identifies using audio fingerprint on ACRCloud.
## Installation
```
npm install identify-song
```
## Dependencies
`identify-song` uses [ACRCloud](https://www.acrcloud.com/) 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](http://sox.sourceforge.net) 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](http://sourceforge.net/projects/sox/files/latest/download)
## Usage
`identify-song` is a function that when invoked creates a `Promise` delivering the JSON result from the ACRCloud API on success.
```js
const identifySong = require('identify-song');
identifySong({
host: '', // i.e. 'us-west-2.api.acrcloud.com'
access_key: '',
access_secret: ' 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).