📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

waveform-audio-recorder

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

waveform-audio-recorder

simple waveform audio recorder

1.0.6
latest
Source
npm
Version published
Weekly downloads
54
63.64%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

audio-recorder

FAQs

Package last updated on 28 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts