Next:
Computing Audio Spectra in Matlab
Up:
Audio Processing in Matlab
Previous:
A Couple Examples
Matlab Audio I/O
Matlab provides a few built-in functions that allow one to import and export audio files.
In newer versions of Matlab, the functions
audioread
and
audiowrite
can be used to read and write data to/from various types of audio files.
Signals can be played out the computer audio hardware in most versions of Matlab via the
sound
(unnormalized) or
soundsc
(normalized) functions.
Example Matlab script and soundfile:
wavinout.m
,
guitar.wav
©2004-2024 McGill University. All Rights Reserved.
Maintained by
Gary P. Scavone
.