New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bigear/microphone-recorder

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bigear/microphone-recorder - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

4

package.json
{
"name": "@bigear/microphone-recorder",
"version": "0.0.9",
"version": "0.0.10",
"description": "It is a lib for sound recording on HTML, implemented by audioContext and webWorker",
"main": "dist/main.js",
"main": "src/index.js",
"scripts": {

@@ -7,0 +7,0 @@ "test": "no test for recorder",

@@ -21,19 +21,24 @@ # microphone-recorder

import {Recorder} from "@bigear/microphone-recorder";
import Recorder from "@bigear/microphone-recorder";
const recorder = new Recorder(input);
recorder && recorder.record();
// speak for a bit
recorder.stop();
recorder.exportWAV("audio/wav", function(blob) {
// append the audio blob to html element
const url = URL.createObjectURL(AudioBLOB);
const au = document.querySelector("audio");
au.controls = true;
au.src = url;
recorder.clear();
});
navigator.mediaDevices.getUserMedia({ audio: true }).then((mediaStreamObject) => {
const input = audio_context.createMediaStreamSource(mediaStreamObject);
const recorder = new Recorder(input);
recorder.record();
// speak for a bit
recorder.stop();
recorder.exportWAV("audio/wav", function(blob) {
// append the audio blob to html element
const url = URL.createObjectURL(AudioBLOB);
const au = document.querySelector("audio");
au.controls = true;
au.src = url;
recorder.clear();
});
})
```

@@ -1,2 +0,1 @@

const Recorder = require('./Recorder')
module.exports = {Recorder}
module.exports = require('./Recorder')

@@ -10,3 +10,3 @@ const path = require('path')

output: {
path: path.resolve(__dirname, 'dist')
path: path.resolve(__dirname, 'dist'),
},

@@ -13,0 +13,0 @@ plugins: [

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