%% Obtain Information About Audio File
% Read an audio file using the dsp.AudioFileReader object. Obtain information related to the audio content of the file.
% The dsp.AudioFileReader objects reads the default shipped file 'speech_dft.mp3'.

afr = dsp.AudioFileReader

% The output structure displays the sample rate of the audio signal in Hz, number of bits used to encode the audio stream, and the number of audio channels.

S = info(afr)

%
% Copyright 2018 The MathWorks, Inc.