Navigation

Operators and Keywords

Function List:

C++ API

: [y, fs] = audioread (filename)
: [y, fs] = audioread (filename, samples)
: [y, fs] = audioread (filename, datatype)
: [y, fs] = audioread (filename, samples, datatype)

Read the audio file filename and return the audio data y and sampling rate fs.

The audio data is stored as matrix with rows corresponding to audio frames and columns corresponding to channels.

The optional two-element vector argument samples specifies starting and ending frames.

The optional argument datatype specifies the datatype to return. If it is "native", then the type of data depends on how the data is stored in the audio file.

Package: octave