MATLAB Answers

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

24 views (last 30 days)
sisi chalisva
sisi chalisva on 1 Aug 2021
Commented: Walter Roberson on 12 Sep 2021 at 21:11
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 Comments
Walter Roberson
Walter Roberson on 12 Sep 2021 at 21:11
We do not know the context. In some contexts, mixing down to mono is fine; in other contexts, the stereo nature is very important.

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 1 Aug 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.

More Answers (0)

Products


Release

R2015b

Community Treasure Hunt

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

Start Hunting!