OptionalbarNumber of bars in the visualization (default: 20)
OptionalcolorsCustom colors
OptionalheightHeight of the monitor (default: 40)
OptionalmodeDisplay mode (default: 'bars')
OptionalonCallback when an error occurs during audio analysis
OptionalorientationOrientation (default: 'horizontal')
OptionalshowShow peak indicator (default: true)
OptionalstreamAudio stream to monitor
OptionalstylesCustom styles
OptionalsxMUI sx styling prop
OptionalwidthWidth of the monitor (default: 200)
Props for the AudioLevelMonitor component.
Remarks
The AudioLevelMonitor visualizes real-time audio levels from a MediaStream. It supports three visualization modes (bars, waveform, meter) and configurable colors and styles for customization.
Example