Element: #252 Voice messages (display/audio-player)
What it shows: Two voice message players: one with a waveform from peaks, one with flat placeholder bars.
When to use: Voice notes in chat where the audio loads only on the first play and can be scrubbed.
Spec:
- ``
- ``
- `const peaks = Array.from({ length: 48 }` builds the waveform amplitudes
- `tone(2)` builds a 2 second WAV blob as the source
Tags: audio-player, voice, waveform, chat, scrub
Needs: @codeatlasdev/ui@4.6.0
Components: AudioPlayer
Live demo: https://ui.codeatlas.com.br/docs/display/audio-player#voice-messages