Skip to content

AudioPlayer

Stable

Plays one clip: play and pause, a waveform to seek, time, speed and download.

Also known as audio, player, media player

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Call recording

Call with Maya Okafor

Support call, 3 October, 14:02

0:00 / 3:12

No file is needed for a preview: the player simulates playback from duration. Press Play, then try the arrow keys on the waveform, or Space and K anywhere in the player.

When to use it

Lets someone listen back, jump to a moment and change the speed, with every state written in words.

Made of: Play button · Title · AI label · Subtitle or state · Waveform · Time · Speed · Download

Use it for

  • Listening back to a support or sales call.
  • Playing a voice or song the AI made, with an AI label.
  • A list of short takes, using the compact row.

Not for

Do and avoid

Welcome message, Iris voice

Ready

0:00 / 0:38
Do. An AI label says the voice was made, while the player stays plain.
Welcome message, Iris voice

Ready

0:00 / 0:38
Avoid. With no AI label, listeners think a real person recorded it.

Do

  • Wait for a press before playing anything.
  • Mark only the moments people need, such as tool calls, interruptions and the end.
  • Say why a clip cannot be played or downloaded, and what is still there.
  • Add the AI label to clips the AI made, and keep the rest of the player neutral.

Avoid

  • Don't autoplay, or play a preview on hover.
  • Don't colour the waveform or the Play button with the AI colour.
  • Don't let two players play at once. This one pauses the others for you.
  • Don't use amber for "recording" or "new take ready". Neither needs a person to act.

On a phone

  • The Play button is 44px. Speed and Download grow to 44px tall on touch screens.
  • The seek area is at least 44px tall. Tap to seek, and a time bubble shows while dragging.
  • The bottom row wraps when space is short. On the narrowest phones the waveform becomes a plain bar.
  • While playing it sets the lock-screen title and play, pause and seek controls where the browser supports them.
  • The compact row is 56px tall.

Seen in products

  • Vapi call logs have a waveform you can play and scrub, with downloads for mono, stereo or each side.
  • Alexa voice history lets you play each recording.
  • NotebookLM audio overviews offer playback speed, download, feedback and an AI label.
  • Suno limits downloads per month and shows how many are left.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started