Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

waveform-audio-recorder

youneszahzouh181MITdeprecated1.0.6TypeScript support: included

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

simple waveform audio recorder

audio-recorder, waveform, react, sound, recorder, audio, microphone, visualizer, typescript, javascript

readme

React Waveform Audio Recorder

A simple component that helps you display a waveform visualization of microphone input while recording.

Installation

Install the npm package with:

NPM

npm install waveform-audio-recorder --save

Yarn

yarn add waveform-audio-recorder --save

Example

import React, { useState } from 'react'
import { WaveformAudioRecorder, WaveformAudioRecorderType } from 'waveform-audio-recorder'

function App() {
    const [recorderState, setRecorderState] = useState<WaveformAudioRecorderType | null>(null)

    return (

        <div className='App'>

            <button onClick={recorderState?.initRecording ? recorderState?.saveRecording : recorderState?.startRecording}>
            {recorderState?.initRecording ? 'Stop' : 'Start'}
            </button>

            <WaveformAudioRecorder setRecorderState={setRecorderState} />

            {recorderState?.recordingDuration}
    </div>

    )
}

export default App