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 - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

32

dist/types/microphone.d.ts

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

declare const Microphone: (customConfig?: CustomConfig | undefined) => MicrophoneInstance;
export default Microphone;
interface AudioState {
leftChan: Float32Array[]
rightChan: Float32Array[]
recordingLength: number
}
interface Config {
nbChannels: number
sampleRate: number
bufferSize: number
byteRate: number
}
interface CustomConfig {
nbChannels?: number
sampleRate?: number
bufferSize?: number
onData?: (event: any) => any
}
interface MicrophoneInstance {
start: () => void
stop: () => void
reset: () => void
download: (blob: Blob) => void
getBlob: () => Blob | undefined
}
declare const Microphone: (customConfig?: CustomConfig | undefined) => MicrophoneInstance
export default Microphone

2

package.json
{
"name": "microphone-js",
"version": "0.0.2",
"version": "0.0.3",
"description": "",

@@ -5,0 +5,0 @@ "keywords": [],

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