What problem does it solve?
Agents default to legacy audio APIs like audioDeviceWriter, audioDeviceReader, or sound(), producing less capable MATLAB code for audio hardware I/O. This Skill provides the correct patterns for the unified audiostreamer object introduced in Audio Toolbox R2025a.
Core Features & Use Cases
- Unified Device I/O: Configure player, recorder, or full-duplex modes with driver selection (ASIO, WASAPI, CoreAudio, ALSA), channel mapping, and sample rate control.
- Callbacks and Transport Control: Use PlayerFcn/RecorderFcn callbacks, blocking and non-blocking play/record, start/stop/pause/resume, and loopback latency measurement.
- Migration Guidance: Replace audioDeviceReader/audioDeviceWriter loops, audioplayer/audiorecorder, and sound() with correct audiostreamer equivalents, avoiding pitfalls like single-channel default recording.
- Use Case: Run an acoustic measurement by playing a sweep tone and recording the response simultaneously with playrec, then compute the impulse response with impzest.
Quick Start
Ask your agent to write MATLAB code that plays an audio signal through the sound card and records the microphone input simultaneously using audiostreamer.