skillfed

audio-playback

This skill equips developers with the tools to integrate audio playback functionality into web-based projects. Handle audio streams, manage playback state, and provide users with standard controls for a polished listening experience.

audio-playback enables web developers to integrate audio playback by managing audio streams and playback state. The skill provides standard controls for play, pause, and volume management, allowing you to build polished listening experiences. You can load audio files, control playback timing, and synchronize multiple audio sources within your web applications.

AI-generated summary based on this skill's SKILL.md

8 3 MIT updated by Bbeierle12

Install

Bbeierle12/Skill-MCP-Claude/audio-playback · repository language: JavaScript

CLI (skillfed)coming soon
git clone https://github.com/Bbeierle12/Skill-MCP-Claude
cp -r Skill-MCP-Claude/skills/audio-playback ~/.claude/skills/audio-playback

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How to play audio in JavaScript with audio-playback?

audio-playback enables web developers to integrate audio playback by managing audio streams and playback state. The skill provides standard controls for play, pause, and volume management, allowing you to build polished listening experiences. You can load audio files, control playback timing, and synchronize multiple audio sources within your web applications.

What audio scheduling and timing features does audio-playback offer?

audio-playback supports scheduling and synchronizing timed audio events with transport controls. This allows you to coordinate multiple audio tracks, create precise timing for sound effects, and manage synchronized playback across your application. The skill handles transport sync to ensure audio events trigger at exact moments.

Can audio-playback handle sound effects and music players?

Yes, audio-playback is designed to create sound effects and music players with effects chains. You can build comprehensive audio experiences by chaining effects like reverb and delay, managing multiple audio tracks with crossfading capabilities, and implementing both ambient and interactive audio scenarios within your web app.

How does audio-playback manage multiple audio tracks?

audio-playback provides tools to load and manage multiple audio tracks with crossfading support. This enables smooth transitions between different audio sources, allowing you to build sophisticated music players and ambient audio backgrounds. The skill handles track management and state synchronization across your application.

What license does audio-playback use?

audio-playback is released under the MIT license, making it freely available for both personal and commercial projects with minimal restrictions.

SKILL.md

rendered from the published skill — quoted content, verbatim

Audio Playback

Audio playback and scheduling with Tone.js.

Quick Start

npm install tone
import * as Tone from 'tone';

// Simple playback
const player = new Tone.Player('/audio/music.mp3').toDestination();

// Must start audio context after user interaction
document.addEventListener('click', async () => {
  await Tone.start();
  player.start();
});

Core Concepts

Audio Context Initialization
import * as Tone from 'tone';

// Audio context requires user gesture to start
async function initAudio() {
  await Tone.start();
  console.log('Audio context started');
}

// Common pattern: init on first click
document.addEventListener('click', initAudio, { once: true });
Player Basics

```javascript // Create player const player = new Tone.Player({ url: '/audio/track.mp3', loop: true, autostart: false, onload: () =>

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 2 files
skills/audio-playback/SKILL.md
skills/audio-playback/_meta.json

Related skills

Tags

web-audio-api sound-synthesis music-sequencing interactive-audio real-time-scheduling audio-routing dsp-effects tempo-sync asset-preloading