Hello guys,
Anyone have a way to display the audioinfo of a wav file into a msgbox?

 採用された回答

Geoff Hayes
Geoff Hayes 2020 年 4 月 26 日

0 投票

okh99 - if you want to use msgbox then you could do something like
info = audioinfo(filename); % <---- where filename is the name of your wav file
message = sprintf('Filename: %s\nCompressionMethod: %s\nNumChannels: %d\nSampleRate: %d\n', ...
info.Filename, info.CompressionMethod, info.NumChannels, info.SampleRate);
hMsgBox = msgbox(message);
You can add add more data to (or remove from) the message.

その他の回答 (0 件)

質問済み:

2020 年 4 月 25 日

回答済み:

2020 年 4 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by