v0.3.1 StableFoundation ComponentReact 18 & 19Zero Runtime CSS

AudioPlayer

Native audio playback with a readable transcript.

Interactive preview

Transcript: A short, quiet reference tone fades in and out. No speech.

Usage

import { AudioPlayer } from "@devvy-ui/react";

<AudioPlayer label="Studio tone" src="/examples/studio.wav" transcript={<p>A short, quiet reference tone.</p>} />

API reference

Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:

PropTypeDefaultDescription
labelstringrequiredMedia name.
transcriptReactNoderequiredVisible transcript content.
native audio propsAudioHTMLAttributes—Sources, media events, ref and settings.

Accessibility & behavior

Platform Behavior & Guidelines

Native controls handle playback and seeking. No autoplay is enabled by default. Supply a transcript for spoken content and disclose non-speech audio meaningfully.

Source ownership

Run npx @devvy-ui/cli init once in your React project, then add the source:

npx @devvy-ui/cli add audio-player

Make the source yours.

Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.

AudioPlayer.tsxREACT / TSX

Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.