FUNCTION REFERENCE
audioread
Read a WAV audio file.
Read a WAV audio file.
Syntax
[y, Fs] = audioread(filename)Syntax
[y, Fs] = audioread(filename, [start finish], datatype)Returns samples by channels. 'double' (default) scales to [-1, 1); 'native' keeps uint8, int16, int32 (24-bit data shifted left by 8) or single.
Example
f=[tempname(pwd) '.wav']; audiowrite(f, [0; 0.5], 8000); y=audioread(f); delete(f); y % [0; 0.5]Differences from MATLAB: Only WAV files (PCM 8/16/24/32-bit and 32/64-bit float); FLAC, Ogg and MPEG-4 are not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.