VoicePlayer
A recorded voice note as a waveform with play, a clock, a speed control and the transcript beneath.
VoicePlayer
VoicePlayer draws a recorded voice note: the waveform from its stored peaks, play and pause, a clock, a 1×, 1.5× and 2× speed control, and the transcript. The host owns the audio element, so it hands down whether the note plays and how far it has got. The transcript is the note's text alternative, so a failed load still leaves it readable.
Storybook
Loading
Props
Prop
Type
Also takes the attributes of the element it renders.
Tokens
Derived from the component source at docs-generation time — these are the --augds-* variables it reads. Re-theme the colour slots by constructing a partner DesignSystemTheme and wrapping the consumer subtree in <ThemeProvider>, never by hard-coding values.
--augds-background-sunken-1--augds-background-sunken-2--augds-border-subtle--augds-foreground-brand--augds-foreground-disabled--augds-foreground-primary--augds-foreground-quaternary--augds-foreground-secondary--augds-foreground-tertiary--augds-interaction-focus-ring--augds-radius-primitive-16--augds-radius-primitive-999--augds-status-error-fg--augds-surface-elevated
Source
src/components/ui/voice-player/voice-player.tsxsrc/components/ui/voice-player/voice-waveform.tsx
VideoRecorder
A stage-driven recorder for a short video clip or a voice note, from consent through the countdown and review to the upload.
VoiceRecorder
Records a short voice note in stages, from asking for the microphone through a live waveform to a review with the transcript, inline or as a bottom sheet.