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.

Functions

expand all

audioDatastoreDatastore for collection of audio files
dsp.AudioFileWriterStream to audio file
dsp.AudioFileReaderStream from audio file
audioEnvelopeCompute envelope of an audio file (Since R2023a)
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 (Since R2019b)

Blocks

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 (Since R2020a)
Audio OscillatorGenerate sine, square, and sawtooth waveforms (Since R2020a)
Colored NoiseGenerate colored noise signal

Topics