Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to load wma file in Matlab

332 views
Skip to first unread message

Ryan Underwood

unread,
Aug 2, 2007, 7:29:06 PM8/2/07
to
How to convert .wma file to .mat file and load in Matlab ?
I have a .mat file located in the desktop but when I try to
load it, the file is unreadable by Matlab, why ?

panabiker

unread,
Aug 3, 2007, 7:02:50 AM8/3/07
to

You can convert .wma to .wav file using some available software, load
the .wav file in matlab and save it to .mat file. The file size will
increase by a lot though.
Not all .mat files are Matlab files.

Ryan Underwood

unread,
Aug 3, 2007, 9:51:52 AM8/3/07
to
panabiker <ghu...@comcast.net> wrote in message
<1186138970.7...@b79g2000hse.googlegroups.com>...

Currently, I'm using Switch to convert .wma file to .wav
format,and load using the following command:

************************************************************
load ('song.wav');
player=audioplayer(y,Fs);
play(player)

A message of "Unknown text on line number 1 of ASCII file"
appear,

and
************************************************************
player=wavread('song.wav')
play(player)

A message of "Incorrect chunk size information in WAV file"
appear

************************************************************
what is the mistake I have made ?


panabiker

unread,
Aug 3, 2007, 12:00:17 PM8/3/07
to
On Aug 3, 9:51 am, "Ryan Underwood" <ryan8...@hotmail.com> wrote:
> Currently, I'm using Switch to convert .wma file to .wav
> format,and load using the following command:
>
> ************************************************************
> load ('song.wav');
> player=audioplayer(y,Fs);
> play(player)
>
> A message of "Unknown text on line number 1 of ASCII file"
> appear,
>
> and
> ************************************************************
> player=wavread('song.wav')
> play(player)
>
> A message of "Incorrect chunk size information in WAV file"
> appear
>
> ************************************************************
> what is the mistake I have made ?

The second method using wavread is correct. Looks like the header of
the wav file was not right. I would try to wavread a different wav
file from a different source (ex. windows recorder) and see if it
works.


mohd syauqee

unread,
Mar 31, 2010, 9:54:04 AM3/31/10
to
panabiker <ghu...@comcast.net> wrote in message <1186156817.5...@z24g2000prh.googlegroups.com>...
can i know how to save matlab file in .wav format?

Stephanie Micallef

unread,
Apr 30, 2011, 11:44:05 AM4/30/11
to
I am new to matlab. i want to load a song. I am using this command load ('song.wav') in the command window. i am getting this error: ??? Error using ==> load
Unable to read file song.wav: No such file or
directory.
Where should i put the song that i wish to load? thanks

Steven_Lord

unread,
May 2, 2011, 12:10:17 AM5/2/11
to

"Stephanie Micallef" <eff...@yahoo.com> wrote in message
news:iphao5$i8i$1...@fred.mathworks.com...

You probably don't want to use the LOAD function; use WAVREAD instead, and
make sure that either the file is in the current directory or that you've
specified the full path to the file in the WAVREAD call.

--
Steve Lord
sl...@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Yumnam Kirani

unread,
May 2, 2011, 1:11:04 AM5/2/11
to
"Ryan Underwood" <ryan...@hotmail.com> wrote in message <f8vbto$35t$1...@fred.mathworks.com>...
You can try the is to check what are the variables available in the workspace after loading the 'song.wav'. Use those variables in forming audio object using audioreader and then play using object.
Otherwise, you can use the sound function to play the audio samples loaded.

Yumnam Kirani Singh
Tronglaobi Awang Leikai

Darcy Bush

unread,
Jul 1, 2015, 7:36:10 AM7/1/15
to
"Ryan Underwood" <ryan...@hotmail.com> wrote in message <f8tpc2$5rj$1...@fred.mathworks.com>...
> How to convert .wma file to .mat file and load in Matlab ?
> I have a .mat file located in the desktop but when I try to
> load it, the file is unreadable by Matlab, why ?

I agree with panabiker.

Here share a powerful WMA Converter with you. It supports converting WMA files to any other audio formats like MP3, WAV, AAC, FLAC, AIFF, etc. In addition, it also enables to convert many other audio files to WMA formats like FLAC to WMA. The output quality is excellent and the conversion speed is fast.

Visit: http://www.faasoft.com/articles/wma-converter.html

Try this method to make sure if it is what you are looking for.

Dinesh Iyer

unread,
Jul 17, 2015, 1:02:12 PM7/17/15
to
Hi Ryan,
You can use the AUDIOREAD function in MATLAb to read audio data from WMA files into MATLAB. You can also use the IMPORTDATA function which internally calls AUDIOREAD.

Regards
Dinesh

"Ryan Underwood" <ryan...@hotmail.com> wrote in message <f8tpc2$5rj$1...@fred.mathworks.com>...

timmdd pan

unread,
Oct 28, 2015, 10:20:09 PM10/28/15
to
>
> I agree with panabiker.
>
> Here share a powerful WMA Converter with you. It supports converting WMA files to any other audio formats like MP3, WAV, AAC, FLAC, AIFF, etc. In addition, it also enables to convert many other audio files to WMA formats like FLAC to WMA. The output quality is excellent and the conversion speed is fast.
>
> Visit: http://www.faasoft.com/articles/wma-converter.html
>
> Try this method to make sure if it is what you are looking for.

very useful
this helpful show the important information about wma files and some good way to deal with it.
http://www.videoconverterfactory.com/glossary/wma.html
0 new messages