Main Content

Audio I/O and Waveform Generation

Record and play audio from devices, read and write audio files, generate waveforms

Audio Toolbox™ enables real-time audio input and output. Using the enhanced functionality of Audio Toolbox audio I/O, you can interact with the low-latency ASIO™ driver on Windows®, selectively map to and from device channels, and control your device bit depth. To manage a database of audio files, use audioDatastore.

You can also generate tunable periodic waveforms to create test signals, control signals, and your own unique sounds.


expand all

audioDatastoreDatastore for collection of audio files
dsp.AudioFileWriterStream to audio file
dsp.AudioFileReaderStream from audio file
audioPlayerRecorderSimultaneously play and record using an audio device
audioDeviceReaderRecord from sound card
audioDeviceWriterPlay to sound card
asiosettingsOpen settings panel for ASIO driver
getAudioDevicesList available audio devices
audioOscillatorGenerate sine, square, and sawtooth waveforms
wavetableSynthesizerGenerate periodic signal from single-cycle waveforms
pinknoiseGenerate pink noise


Audio Device ReaderRecord from sound card
Audio Device WriterPlay to sound card
From Multimedia FileStream from multimedia file
To Multimedia FileStream video frames and audio samples to multimedia file
Wavetable SynthesizerGenerate periodic signal from single-cycle waveforms
Audio OscillatorGenerate sine, square, and sawtooth waveforms


Real-Time Audio in MATLAB

Create a script to process and analyze real-time audio signals.

Audio I/O: Buffering, Latency, and Throughput

Learn key terminology and basic techniques for optimizing stream processing algorithms.

Featured Examples