Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/philnash/react-web-audio

A small example React app that listens to the microphone and visualises the audio
https://github.com/philnash/react-web-audio

getusermedia javascript react reactjs web-audio web-audio-api

Last synced: about 1 month ago
JSON representation

A small example React app that listens to the microphone and visualises the audio

Awesome Lists containing this project

README

        

# React + Web Audio

This is an example application that shows how to visualise audio from the microphone using the Web Audio API in React.

![](https://s3.amazonaws.com/com.twilio.prod.twilio-docs/images/f45ncza6SRuSXhp7iE4XODmWWhy1_uqWUTbJy9Mg1uB8Eo.width-500.png)

## How to build the app

If you're interested in how to build a visualiser like this in React, check out the blog post [Audio visualisation with the Web Audio API and React](https://www.twilio.com/blog/audio-visualisation-web-audio-api--react).

For more on the canvas and React, check out the post [Techniques for animating on the canvas in React](https://philna.sh/blog/2018/09/27/techniques-for-animating-on-the-canvas-in-react/).

## How to run the app

You need Node.js installed to run the application.

Clone or download the project from GitHub, change into the directory and install the dependencies.

```bash
git clone https://github.com/philnash/react-web-audio.git
cd react-web-audio
npm install
```

Start the application:

```bash
npm start
```

And open the browser to [http://localhost:3000/](http://localhost:3000).