useMultibandTrackVolume
Note
This feature is experimental and may change or be removed based on developer feedback and real-world usage.
Hook for tracking the volume of an audio track across multiple frequency bands using the Web Audio API.
Import
import { useMultibandTrackVolume } from "@livekit/components-react";
Properties
options.analyserOptions
AnalyserOptionsOptionaloptions.bands
numberOptionaloptions.hiPass
numberOptionalcut off of frequency bins on the higher end Note: this is not a frequency measure, but in relation to analyserOptions.fftSize,
options.loPass
numberOptionalcut off of frequency bins on the lower end Note: this is not a frequency measure, but in relation to analyserOptions.fftSize,
options.updateInterval
numberOptionalupdate should run every x ms
trackOrTrackReference
LocalAudioTrack | RemoteAudioTrack | TrackReferenceOrPlaceholderOptionalReturns
number[]