FUNCTION REFERENCE

audioinfo

Information about a WAV audio file.

Information about a WAV audio file.

Syntax

info = audioinfo(filename)

Returns Filename, CompressionMethod, NumChannels, SampleRate, TotalSamples, Duration, Title, Comment, Artist ([] when absent) and BitsPerSample.

Example

f=[tempname(pwd) '.wav']; audiowrite(f, zeros(8,2), 8000); i=audioinfo(f); delete(f); i.NumChannels   % 2

Differences from MATLAB: Only WAV files.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.