How to read .m4a and .wv audio file formats in matlab 2015b ?
조회 수: 10 (최근 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에서 Measurements and Spatial Audio에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!