Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

microphone-js

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microphone-js

A tiny library for converting browser's audio to WAV/PCM

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source
logo

A tiny library for converting browser's audio to WAV/PCM


zero dependency
uses browser's api MediaDevices.getUserMedia()

usage

npm install microphone-js
import { Microphone } from 'microphone-js'

const mic = Microphone();
// const mic = Microphone({ isMono: true, sampleRate: 16000 }); if you yant mono 16KHz, default is stereo 44kHz

mic.start();

mic.stop();

// continue recording
mic.start();

const blob = mic.getBlob();

mic.download();

// reset recording buffer
mic.reset();    

Resources


  • http://soundfile.sapp.org/doc/WaveFormat/
  • https://gist.github.com/meziantou/edb7217fddfbb70e899e
  • https://github.com/alexjoverm/typescript-library-starter

FAQs

Package last updated on 01 Aug 2019

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc