Find size of a audio file

Hi all,
i was working on an audio file and landed in a position where i have to find the size of the file. How can i get the size of the audio file in matlab ?

 採用された回答

Walter Roberson
Walter Roberson 2011 年 12 月 6 日

1 投票

For the special case of .wav files, you can use wavread():
siz = wavread(filename,'size') returns the size of the audio data contained in filename instead of the actual audio data, returning the vector siz = [samples channels].

1 件のコメント

Kishore
Kishore 2011 年 12 月 9 日
Thank you

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by