# Sound Bites

> Voice moments drawn as waveforms: a note playing back, or a live recording turning into a transcript.

- Collection: Illustrations
- Tier: pro
- Docs: https://geturui.com/docs/sound-bites
- Install: `npx shadcn@latest add @geturui-pro/sound-bites`
- Dependencies: motion

## Variants

### Waveform

A voice note plays back: the waveform fills behind a moving playhead while the bars breathe.

Install: `npx shadcn@latest add @geturui-pro/sound-bites-waveform`

```tsx
import { SoundBiteWaveform } from "@/components/illustrations/sound-bites/waveform";

export function WaveformIllustration() {
  return (
    <div className="rounded-xl border border-border bg-surface p-4">
      <SoundBiteWaveform duration="0:42" className="w-full" />
    </div>
  );
}
```

| Prop | Type | Default | Description |
|---|---|---|---|
| duration | `string` | "0:24" | Duration label shown on the note. |
| speed | `number` | 1 | Speed multiplier for the loop (six seconds at 1). |
| title | `string` | — | Accessible description of the scene, used as the aria-label. |
| className | `string` | — | Classes for the SVG; it fills its container width and keeps its ratio. |

### Transcript

Live bars dance while words land one by one and a highlight follows the spoken word.

Install: `npx shadcn@latest add @geturui-pro/sound-bites-transcript`

```tsx
import { SoundBiteTranscript } from "@/components/illustrations/sound-bites/transcript";

export function TranscriptIllustration() {
  return (
    <div className="rounded-xl border border-border bg-surface p-4">
      <SoundBiteTranscript className="w-full" />
    </div>
  );
}
```

| Prop | Type | Default | Description |
|---|---|---|---|
| speed | `number` | 1 | Speed multiplier for the loop (seven seconds at 1). |
| title | `string` | — | Accessible description of the scene, used as the aria-label. |
| className | `string` | — | Classes for the SVG; it fills its container width and keeps its ratio. |

## Accessibility

- Rendered as a single SVG with role="img" and an aria-label you can override with `title`; nothing inside is focusable.
- Under prefers-reduced-motion the scene renders one meaningful still frame: no loops, no timers.
- Colours come from the GetUrUI tokens only, so the scene follows light and dark themes automatically.

## Source

Pro item — send `Authorization: Bearer <registry token>` to include the source.
