# audio

Rule for handling sound in Remotion: import audio files, trim, adjust volume and playback speed, shift pitch. Requires the @remotion/media package.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 849 repo stars
- Author: coleam00
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/coleam00/second-brain-skills/tree/HEAD/.claude/skills/remotion/rules/audio.md
- Updated: 2026-01-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/audio

## What it does

This rule explains how to add and edit audio tracks in Remotion video compositions. It covers importing local and remote audio files via the `<Audio>` component, trimming by frame count (`trimBefore`, `trimAfter`), delaying playback with `<Sequence>`, static and dynamic volume control through callbacks, muting, playback speed adjustment (`playbackRate`), looping (`loop`) with frame count behavior options, and pitch shifting (`toneFrequency` ranging 0.01 to 2).

Install the `@remotion/media` package first using `npx remotion add @remotion/media` (or the equivalent for bun, yarn, pnpm). Pitch shifting only renders on the server; the effect will not appear in Studio preview or the `<Player>` component. Reverse playback is not available.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/audio.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/audio.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/audio.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/audio.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/audio.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/coleam00/second-brain-skills/tree/HEAD/.claude/skills/remotion/rules/audio.md

## When to use it
- embed an audio file into a Remotion video composition
- trim audio start and end points by frame count
- set static or animated volume with transitions
- create looping audio with controllable frame counting behavior
- adjust pitch independently of playback speed

## Example prompts
- Add audio from `background.mp3` throughout the entire composition
- Trim the first 2 seconds and end at the 10-second mark while fading volume from 0 to 1
- Loop background music and raise its pitch to 1.5 during server-side rendering

## Similar
- [audio-and-sound](https://affpapa.org/en/nevibecode/skills/audio-and-sound.md) — skill · 1200 installs
- [ffmpeg](https://affpapa.org/en/nevibecode/skills/ffmpeg.md) — skill · 16500 installs
- [remotion-multimedia](https://affpapa.org/en/nevibecode/skills/remotion-multimedia.md) — skill · 3 installs
- [videoagent-audio-studio](https://affpapa.org/en/nevibecode/skills/videoagent-audio-studio.md) — skill · 4000 installs
- [audio-visualization](https://affpapa.org/en/nevibecode/skills/audio-visualization.md) — skill · 345 installs
- [audio-reactive-video-composition](https://affpapa.org/en/nevibecode/skills/audio-reactive-video-composition.md) — skill · 170 installs

From the same set: [coleam00/second-brain-skills](https://affpapa.org/en/nevibecode/by/coleam00/second-brain-skills.md) — 33 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
