Valora
API Reference@valora-ai/reactindexFunctions

MicLevelBar

function MicLevelBar(__namedParameters): Element;

Defined in: packages/react/src/components/visualizer/MicLevelBar.tsx:35

A Discord-style mic sensitivity bar. Reads useVoiceAssistant() for micLevel + vadActive — no props required. Segment fill count tracks micLevel; the fill colour is activeColor while VAD is active, inactiveColor otherwise.

Parameters

ParameterType
__namedParametersMicLevelBarProps

Returns

Element

Example

// Basic — render the mic level meter.
<VoiceRoom agent={agent}>
  <MicLevelBar />
</VoiceRoom>

// Advanced — custom segment count and colours.
<VoiceRoom agent={agent}>
  <MicLevelBar segments={12} activeColor="#22c55e" inactiveColor="#4b5563" />
</VoiceRoom>

On this page

Valora is local-first

No API key, no server — everything in this doc runs on-device.

Star on GitHub