a module to get MediaStream audio level.
yarn add stream-audio-level
import { watchStreamAudioLevel } from 'stream-audio-level'
const close = watchStreamAudioLevel(stream, (v) => console.log(v))
close()
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()