How to read .m4a and .wv audio file formats in matlab 2015b ?

18 visualizaciones (últimos 30 días)
Hello everyone
How to read .m4a and .wv audio file formats in matlab 2015b ?
I've tried it with this format :
[y,Fs] = audioread('water.m4a');
but there is an error :
Error using audioread (line 88)
Failed to initialize internal resources.
Error in test4 (line 9)
[y,Fs] = audioread('water.m4a');
Why does this happen and how to solve it?
Thank you
  6 comentarios
Johannes Stache
Johannes Stache el 12 de Sept. de 2021
Understood, I got 2 audio channels. That explains my question, thank you!
For my application I want to apply further signal analysis und signal processing techniques (such as FFT, PSD, etc.).
I am wondering now:
Should I take the average/mean of both signals [-> (signal_A+signal_B) / 2 ] and perform my analysis afterwords or should i treat both signals independently?
What could you recommend @Walter Roberson (or other users)?
Walter Roberson
Walter Roberson el 12 de Sept. de 2021
We do not know the context. In some contexts, mixing down to mono is fine; in other contexts, the stereo nature is very important.

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 1 de Ag. de 2021
R2015b did not directly support reading .m4a files on MS Windows -- only on Linux and Mac.
It did, however, say that files supported by Microsoft's Media Foundation might also be usable.
You could therefore experiment with downloading an extensive codec package, such as from https://www.mediaplayercodecpack.com/ and see if that happens to solve your problem.
I was not familiar with .wv (WavePack) files https://en.wikipedia.org/wiki/WavPack . I do not see any direct MATLAB support for any release. If they do not happen to be supported by the above codec pack, then you might need to use https://github.com/dbry/WavPack and call into a DLL from MATLAB .
... Or you could get something like VLC https://www.videolan.org/ and use it in command line mode to transcode the .wv file into a different file format that your release could use.

Más respuestas (0)

Categorías

Más información sobre Audio I/O and Waveform Generation en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by