Skip to content
h v3.13.3
Search the docs
Find a component, section or page.

Voice waveform

Bars that move while someone speaks. Click to pause.

Installation

pnpm add @heyramzi/ui

Usage

import { VoiceWaveform } from "@heyramzi/ui/ai/voice-waveform";

Keyboard and accessibility

  • The waveform is hidden from screen readers and doesn't say whether it's live.
  • Put it inside a control that carries the name and state, like the demo's button that reports pressed.
  • With reduced motion on, the bars stop moving.

API reference

active boolean
Default false
class string
bars readonly number[]
Default DEFAULT_BARS
...rest
Every prop of HTMLAttributes<HTMLDivElement> from svelte/elements
Prop Type Default
active boolean false
class string
bars readonly number[] DEFAULT_BARS
...rest Every prop of HTMLAttributes<HTMLDivElement> from svelte/elements