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

18 次查看(过去 30 天)
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 个评论
Johannes Stache
Johannes Stache 2021-9-12
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 2021-9-12
We do not know the context. In some contexts, mixing down to mono is fine; in other contexts, the stereo nature is very important.

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2021-8-1
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Audio I/O and Waveform Generation 的更多信息

产品


版本

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by