Real-Time Audio Engineering

Build glitch-free real-time audio pipelines with AVAudioEngine and Core Audio.

1|Updated Apr 16, 2026
One-click install
npx skills add https://github.com/melissa-pereira-deel/creative-technologist-agent --skill real-time-audio-engineering
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Real-Time Audio Engineering
Source: https://github.com/melissa-pereira-deel/creative-technologist-agent/tree/main/skills/realtime-audio
Command: npx skills add https://github.com/melissa-pereira-deel/creative-technologist-agent --skill real-time-audio-engineering

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Real-time audio processing often suffers glitches and latency due to improper thread handling and DSP placement. This Skill provides a structured approach to building stable audio pipelines using CoreAudio, AVAudioEngine, and real-time constraints.

Core Features & Use Cases

  • Real-Time Thread Contract: rules to avoid allocations, locking, and blocking I/O in the audio callback.
  • DSP & Ring Buffers: guidance on using Accelerate for FFT and ring buffers for inter-thread data.
  • Practical Scenarios: capture from microphone, live monitoring, voice activity detection, and noise reduction in macOS/iOS.

Quick Start

Initialize an AVAudioEngine graph and enable a real-time render callback with strict non-allocation rules.

Frequently Asked Questions about Real-Time Audio Engineering

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

FAQPage Schema
How do I prevent glitches in real-time audio capture using AVAudioEngine?

To prevent glitches during real-time audio capture, you must enforce strict thread constraints within the AVAudioEngine render callback, avoiding memory allocations, locks, and blocking I/O. Lock-free synchronization and ring buffers ensure stable microphone input.

Why does my Core Audio callback cause audio dropouts and latency?

Audio dropouts and latency in Core Audio callbacks occur when real-time thread constraints are violated, typically by performing heap allocations or blocking operations. Using lock-free ring buffers for inter-thread data transfer eliminates these real-time audio processing bottlenecks.

What is the best way to implement low-latency DSP with Accelerate on macOS?

The best way to implement low-latency DSP on macOS is by utilizing the Accelerate framework for operations like FFTs within a real-time render callback. This requires strict non-allocation rules and lock-free buffer management to process audio without introducing latency.

Can I use lock-free ring buffers for voice activity detection in iOS?

Yes, you can use lock-free ring buffers for voice activity detection in iOS. By routing microphone capture data through ring buffers to a secondary thread, the real-time audio thread remains unblocked while VAD processes the audio safely.

Does real-time audio processing require no-heap allocations in the audio callback?

Yes, real-time audio processing strictly requires no-heap allocations in the audio callback. Any memory allocation or locking in the render thread triggers priority inversion and glitches, so lock-free synchronization and pre-allocated buffers are mandatory.