How to use audio read in Matlab?
Description. [ y , Fs ] = audioread( filename ) reads data from the file named filename , and returns sampled data, y , and a sample rate for that data, Fs . [ y , Fs ] = audioread( filename , samples ) reads the selected range of audio samples in the file, where samples is a vector of the form [start,finish] .
How do I read a WAV file in Matlab?
You can read audio files into a Matlab-vector using the following command audio_vector=audioread('filename'); audioread is a built-in Matlab function. In order to play audio files within Matlab, you can use the following command sound(audio_vector); By default sound assumes a sampling rate of 8192Hz.
How to use Wavread in Matlab?
To activate the Import Wizard, select Import Data from the File menu. wavread supports multichannel data, with up to 32 bits per sample, and supports reading 24- and 32-bit . wav files. y = wavread('filename') loads a WAVE file specified by the string filename , returning the sampled data in y .