GithubHelp home page GithubHelp logo

iammordaty / audio-recognizer Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 0.0 12 KB

:musical_note: Audio recognition services API wrapper for Node.js

Home Page: https://www.npmjs.com/package/audio-recognizer

JavaScript 100.00%
node-js node-module audio-recognition audio-fingerprinting api auddmusic acrcloud

audio-recognizer's Introduction

audio-recognizer

Node.js module for audio recognition services.

Table of Contents

Getting Started

In order to use the module, you need to acquire credentials for your application, which can be obtained from the provider's websites.

Installation

This library can be installed through npm:

$ npm install --save audio-recognizer

Usage

The following example shows how to initialize the library and recognize track based on its fragment. Suggested fragment duration is 15 - 20 seconds.

const AudioRecognizer = require('audio-recognizer');

const config = {
    cache_success_responses: true,
    cache_dir: './cache',
    normalize_results: true,
    acrcloud: {
        host: '',
        access_key: '',
        access_secret: '',
        endpoint: '/v1/identify',
        signature_version: '1',
        data_type: 'audio'
    },
    auddmusic: {
        api_token: ''
    }
}

const recognizer = new AudioRecognizer(config);

recognizer.recognize('path-to-track-fragment.mp3')
    .then(results => /* process results */)
    .catch(e => /* handle error */);

Also, module can be used via commandline interface:

$ node cli -c cli/config.json fragment.mp3
ACRCloud recognition status: success.
 - The Rogue Element – Backbreaker (Rogue Rock) (released 2005-09-26 by Exceptional Records) (score: 76%)
 - Robert Vagner – Blaze (Hi, Everyone...) (released 2015-04-13 by Robert Vagner) (score: 76%)
 - Deky – Pincher's Dog (Welcome to My Mind) (released 2014-02-25) (score: 73%)

AudDMusic recognition status: success.
 - Robert Vagner – Blaze (Hi, Everyone...) (released 2015-04-13 by Robert Vagner)

Type node cli -h for more information.

Further information

See also

License

audio-recognizer is licensed under the MIT License.

audio-recognizer's People

Contributors

iammordaty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.