Voice Note
The waveform is read from the recording and drawn in LED dots, lit as it plays. While it plays the time counts down what's left, and the speed chip taps through 1×, 1.5× and 2×. A lit dot marks one nobody has played yet. Tap the waveform to play from there, or drag along it, and with a transcript, Show text opens what was said underneath. The demo is a made-up friend held up by a goose, voiced with ElevenLabs.
Needs: None. Web Audio decodes the file once to read its loudness.
Customize
from
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| src | string | required | The recording. |
| from | "me" | "them" | "them" | Whose message it is: yours sits on the right in the accent. |
| transcript | string | – | What was said, behind a Show text toggle. |
| unheard | boolean | false | Shows a lit dot until it's been played once. |
| onHeard | () => void | – | Called the first time it's played. |
| tone | string | – | The waveform's colour. The page's accent by default. |
| className | string | – | Class on the message. |
| style | CSSProperties | – | Style on the message. |