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:
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | required | Media name. |
| transcript | ReactNode | required | Visible transcript content. |
| native audio props | AudioHTMLAttributes | — | 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-playerMake 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.
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.