stream-audio-level
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

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()

Readme

Keywords

Package Sidebar

Install

npm i stream-audio-level

Weekly Downloads

6

Version

0.0.5

License

MIT

Unpacked Size

7.86 kB

Total Files

5

Last publish

Collaborators

  • maruware