Socket
Socket
Sign inDemoInstall

stream-audio-level

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    stream-audio-level

Watch MediaStream audio level


Version published
Weekly downloads
9
increased by28.57%
Maintainers
1
Install size
7.68 kB
Created
Weekly downloads
 

Readme

Source

stream-audio-level

a module to get MediaStream audio level.

Installation

yarn add stream-audio-level

Usage

Mininum

import { watchStreamAudioLevel } from 'stream-audio-level'

const close = watchStreamAudioLevel(stream, (v) => console.log(v))
close()

With option

import { watchStreamAudioLevel } from 'stream-audio-level'

const close = watchStreamAudioLevel(stream, (v) => console.log(v), {
    minHz: 100, 
    maxHz: 1000,
    calcMethod: 'max', // default 'average'
    valueType: 'float' // default 'byte'
})
close()

Keywords

FAQs

Last updated on 01 Nov 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc