Giter Club home page Giter Club logo

node-audio-peaks's Introduction

Node Audio Peaks

Generate peak audio data from a local filepath or remote file URL in a Node.js environment - without the browser.

Demo

Try this out on stackblitz - (run the command node index.js in the terminal)

Installation

Use your favorite package manager / npm to install.

npm install node-audio-peaks --save

Usage

Version 3.0.1 Is an ES6 module, and uses RxJS to return the audio peak data as an observable.

getAudioPeaks(url, samples)

import { getAudioPeaks } from "node-audio-peaks";

// Generate peaks for a local audio file
let filepath = 'sampleaudio.mp3';
let audioPeaksFromFile$ = getAudioPeaks(filepath);
audioPeaksFromFile$.subscribe(console.log);

// Generate peaks for a remote audio file
let audioFileURL = 'https://www.kennethcaple.com/api/mp3/richinlovemutedguitarechoing.mp3';
let audioPeaksFromURL$ = getAudioPeaks(audioFileURL);
audioPeaksFromURL$.subscribe(console.log);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This work is licensed under a GNU General Public User License.

Author

Kenneth Caple

node-audio-peaks's People

Contributors

califken avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

node-audio-peaks's Issues

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.