Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/patidar-suresh/audio-waveform

Audio Wavefrom using HTML5 Audio API and Canvas
https://github.com/patidar-suresh/audio-waveform

audio-analysis audio-analyzer audio-visualizer audio-waves html5 html5-audio html5-canvas requestanimationframe waveform

Last synced: 25 days ago
JSON representation

Audio Wavefrom using HTML5 Audio API and Canvas

Awesome Lists containing this project

README

        

# audio-waveform

![Audio Waveform](https://github.com/patidar-suresh/audio-waveform/blob/master/audiowaveform.PNG "Optional title")

This project demonstrate live waveform generation using HTML5 Audio API and Canvas.

- Generate waveform for your audio being played on audio player
- Draw wavefrom using requestAnimationFrame for a smooth drawing
- Handle audio event (play, pause, ended) to start/stop drawing wavefrom.
- Optimized to save CPU cycles when audio is not being played (paused/ended).

### Installation and Running

audio-waveform requires [Node.js](https://nodejs.org/) v4+ to run.

Install the dependencies and devDependencies and start the server.

```sh
$ cd audio-waveform
$ npm install
$ npm start
```

Open the browser and enter following url to run the applicaiton
http://localhost:3001