expo-audio

Play and record audio in React Native apps using expo-audio APIs.

Updated Oct 21, 2025
One-click install
npx skills add https://github.com/jchaselubitz/drill-app --skill expo-audio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: expo-audio
Source: https://github.com/jchaselubitz/drill-app/tree/main/.claude/skills/expo-audio
Command: npx skills add https://github.com/jchaselubitz/drill-app --skill expo-audio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guide for using expo-audio to implement audio playback and recording in React Native apps, covering setup, configuration, and common usage patterns.

Core Features & Use Cases

  • Provides AudioPlayer and AudioRecorder APIs with hooks for React components, plus imperative utilities for non-component usage, across Android, iOS, and Web.
  • Demonstrates handling of permissions, audio mode configuration, background playback, and typical workflows like playing sounds, recording voice, and adjusting volume.

Quick Start

Install expo-audio in your project and start using the provided examples to play and record audio.

Frequently Asked Questions about expo-audio

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I play and record audio in React Native using expo-audio?

You use expo-audio to play and record audio in React Native via AudioPlayer and AudioRecorder APIs, supporting both hook-based patterns for components and imperative utilities for non-component workflows.

How do I handle microphone permissions for audio recording in React Native?

Microphone permissions for audio recording in React Native are handled through the expo-audio API, which provides permission utilities to request and verify access before initiating the AudioRecorder.

Does expo-audio support audio playback and recording across Android, iOS, and Web?

expo-audio supports audio playback and recording across Android, iOS, and Web, providing cross-platform AudioPlayer and AudioRecorder APIs with consistent usage patterns.

Can I configure background audio playback in React Native with expo-audio?

Background audio playback in React Native is supported by expo-audio through its audio mode configuration, allowing you to manage playback behavior when the app is backgrounded.

What is the best way to preload and manage audio volume in React Native?

The best way to preload and manage audio volume in React Native is using expo-audio's AudioPlayer API, which handles preloading sounds and adjusting volume levels during playback.

How do I use hooks to manage audio playback in React Native components?

You use hooks provided by expo-audio to manage audio playback in React Native components, binding AudioPlayer state directly to component lifecycles for reactive sound control.