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.analyserOptionsAnalyserOptionsoptions.bandsnumberoptions.hiPassnumbercut off of frequency bins on the higher end Note: this is not a frequency measure, but in relation to analyserOptions.fftSize,
options.loPassnumbercut off of frequency bins on the lower end Note: this is not a frequency measure, but in relation to analyserOptions.fftSize,
options.updateIntervalnumberupdate should run every x ms
trackOrTrackReferenceLocalAudioTrack | RemoteAudioTrack | TrackReferenceOrPlaceholderReturns
number[]