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

 Respuesta aceptada

Geoff Hayes
Geoff Hayes el 26 de Abr. de 2020

0 votos

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.

Más respuestas (0)

Preguntada:

el 25 de Abr. de 2020

Respondida:

el 26 de Abr. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by