Socket
Book a DemoInstallSign in
Socket

audio-recorder-el

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audio-recorder-el

An custom element to simplify recording sound in the browser.

0.9.0
latest
Source
npmnpm
Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

<audio-recorder>

Node.js

An <audio-recorder> custom element to simplify recording sound in the browser.

The <audio-recorder> element encapsulates a user-interface comprising:

  • A Record button,
  • Stop button,
  • Download button,
  • An <output> status element (live-region),
  • An <audio> element for optional playback.

Any of the UI elements above can be hidden, and styled.

Screenshot of the audio-recorder user interface

Usage

Install locally:

npm i audio-recorder-el

Or access via CDN:

import 'https://unpkg.com/audio-recorder-el';

HTML example:

<audio controls></audio>
<audio-recorder></audio-recorder>

This is a JavaScript example of listening for the audio-recorder event emitted by the custom element (complete demo):

const audioElem = document.querySelector('audio');

document.body.addEventListener('audio-recorder', (event) => {
  const { eventName } = event;
  const recorder = event.target;

  if (event.is('stop')) {
    audioElem.src = recorder.createAudioURL();
  }

  console.debug('audio-recorder:', eventName, event);
});

Keywords

custom

FAQs

Package last updated on 03 Jul 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.