Make your AI a shadcn expert

React AI Audio Player

React AI audio player component with playback controls for AI-generated speech

Audio Player preview

Scroll to load preview

Play AI-generated audio with a sleek, customizable player. Built on media-chrome for consistent cross-browser behavior. Shows play/pause, seek forward/back, time display, progress bar, mute, and volume controls. Accepts either a URL or AI SDK SpeechResult data (base64 audio). Perfect for text-to-speech output, voice messages, or audio previews in AI interfaces.

Install with AI

If you've connected the shadcn.io MCP server to Claude Code, Cursor, Windsurf, or any MCP-ready AI editor, prompt your agent to install this AI component for you — no copy-paste, no CLI:

use shadcnio to install the audio-player AI component into my project

FAQ

Was this page helpful?

Sign in to leave feedback.