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

 Réponse acceptée

Geoff Hayes
Geoff Hayes le 26 Avr 2020

0 votes

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.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by