How to read .m4a and .wv audio file formats in matlab 2015b ?
30 次查看(过去 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
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?
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
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 Center 和 File Exchange 中查找有关 Audio I/O and Waveform Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!