All Projects → danrouse → React Audio Recorder

danrouse / React Audio Recorder

Licence: mit
A React Component using the Web Audio API to record, save, and play audio.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to React Audio Recorder

React Css Component
Injecting CSS via React Components
Stars: ✭ 98 (-16.95%)
Mutual labels:  react-component
React Color
🎨 Color Pickers from Sketch, Photoshop, Chrome, Github, Twitter & more
Stars: ✭ 10,287 (+8617.8%)
Mutual labels:  react-component
Granular
HTML5 Granular Synthesiser
Stars: ✭ 113 (-4.24%)
Mutual labels:  webaudio
React Textarea Autosize
<textarea /> component for React which grows with content
Stars: ✭ 1,357 (+1050%)
Mutual labels:  react-component
Tagify
🔖 lightweight, efficient Tags input component in Vanilla JS / React / Angular / Vue
Stars: ✭ 2,305 (+1853.39%)
Mutual labels:  react-component
React Multi Select
A Multi Select component built with and for React
Stars: ✭ 111 (-5.93%)
Mutual labels:  react-component
React Responsive Picture
A future-proof responsive image component that supports latest Picture specification
Stars: ✭ 91 (-22.88%)
Mutual labels:  react-component
React Router Active Component
Factory function for React components which are active for a particular React Router route
Stars: ✭ 116 (-1.69%)
Mutual labels:  react-component
React Image Fallback
stop displaying broken images, have another image to fallback on.
Stars: ✭ 106 (-10.17%)
Mutual labels:  react-component
React Flow Editor
React component which enables creating flow editors with ease
Stars: ✭ 110 (-6.78%)
Mutual labels:  react-component
React Contextmenu
Project is no longer maintained
Stars: ✭ 1,361 (+1053.39%)
Mutual labels:  react-component
Js Rocks
JS Rocks - Web Audio electric guitar effects and cabinets
Stars: ✭ 106 (-10.17%)
Mutual labels:  webaudio
React Native Interactive Image Gallery
🖼 A React Native component to display a gallery of images.
Stars: ✭ 111 (-5.93%)
Mutual labels:  react-component
React Native Swipeable Parallax Carousel
React Native Swipeable Parallax Carousel
Stars: ✭ 98 (-16.95%)
Mutual labels:  react-component
React Magnifier
🔍 React image zoom component
Stars: ✭ 116 (-1.69%)
Mutual labels:  react-component
React Cassette Player
Simple ReactJS HTML5 audio player component built with SVG icons from The Noun Project.
Stars: ✭ 93 (-21.19%)
Mutual labels:  react-component
React Stepper
Well-designed stepper component for react
Stars: ✭ 108 (-8.47%)
Mutual labels:  react-component
Web Drum Sequencer
A drum machine and sequencer built with the Web Audio API, React, and Redux.
Stars: ✭ 117 (-0.85%)
Mutual labels:  webaudio
React Auto Form
Simplifies getting user input from forms via onChange and onSubmit events, using DOM forms APIs
Stars: ✭ 116 (-1.69%)
Mutual labels:  react-component
React Currency Input Field
React component for an input field
Stars: ✭ 111 (-5.93%)
Mutual labels:  react-component

Audio Recorder

A React Component using the Web Audio API to record, save, and play audio.

Demo & Examples

Live demo: danrouse.github.io/react-audio-recorder

Installation

The easiest way to use react-audio-recorder is to install it from NPM and include it in your own React build process (using Webpack, Browserify, etc).

You can also use the standalone build by including dist/AudioRecorder.min.js in your page. If you use this, make sure you have already included React, and it is available as a global variable.

npm install react-audio-recorder --save

Usage

The <AudioRecorder> component can be instantiated with no properties to act as a simple client-side recorder/downloader. onChange is called when a recording is finished, with the audio data passed as a blob.

import React as * from 'react';
import AudioRecorder from 'react-audio-recorder';

<AudioRecorder />

For more detailed usage examples, see the live demo.

Properties

property type default Description
initialAudio Blob An initial Blob of audio data
downloadable boolean true Whether to show a download button
loop boolean false Whether to loop audio playback
filename string 'output.wav' Downloaded file name
className string '' CSS class name on the container element
style Object {} Inline styles on the container element
onAbort () => void Callback when playback is stopped
onChange (AudioRecorderChangeEvent) => void Callback when the recording buffer is modified
onEnded () => void Callback when playback completes on its own
onPause () => void (NYI)
onPlay () => void Callback when playback begins
onRecordStart () => void Callback when recording begins
playLabel string '🔊 Play' Button label
playingLabel string '❚❚ Playing' Button label
recordLabel string '● Record' Button label
recordingLabel string '● Recording' Button label
removeLabel string '✖ Remove' Button label
downloadLabel string '💾 Save' Button label

Notes

This component is intended for use with short sounds only, such as speech samples and sound effects. The WAV encoder is not offloaded to a service worker, to make this component more portable. It is not space efficient either, recording at 1411kbps (16 bit stereo), so long recordings will drain the system of memory.

Compatibility

Because of its usage of the Web Audio API, react-audio-recorder is not compatible with any version of Internet Explorer (Edge is compatible).

Development

To use the typescript watcher, run npm run dev.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].