[mirtoolbox] Re: help with miraudio

  • From: Annika Linke <annika.linke@xxxxxxxxxxxxxxxxx>
  • To: mirtoolbox@xxxxxxxxxxxxx
  • Date: Thu, 29 Oct 2009 09:42:12 +0000

Hi,

are all your sounds in the same folder? It seems strange that it can read
some of them but not others. You definitely have to add the path to tell
matlab where the sounds are stored but I am guessing you have done that
because it did work for some of them. Having said that, I now remembered
that I also had problems with mp3read and file names. When using wavread I
would just put the path of the sound directory at the beginning of the
script using <addpath> and it would find all the sounds without any
problems, this did not work with mp3read. When using mp3read I had to use
the entire path as the sound name, e.g.

fn=sprintf('/Users/Annika/sounds/final/mp3/sound1' ); %this is on a Mac but
I also had to use the entire path on Windows
[y samplerate nbits]=mp3read(fn);

This is a bit annoying but I didn't have that many mp3 sounds and they were
all in the same folder conveniently named sound1, sound2, sound3 ;-) so I
could just loop through them. There might be a better way to solve this
problem.

Concerning the Chinese characters, I have no idea but I think there was a
mail about that before, you could check the archive.

Annika

2009/10/29 Goh L.X <curiousplaystar@xxxxxxxxxxx>

>  Hi,
>
> I have the mp3read installed already. It's the one that comes with the
> mirtoolbox. Some of the files without space also gave the error that it
> cannot be opened. I was thinking if I put the song database in a path where
> matlab can read. Do I have to declare a specific path to the song
> database in the mp3read.m file? Also, is it possible to read in songs with
> chinese characters as the filename?
>
> Regards,
> Lix
>
>  *From:* Annika Linke <annika.linke@xxxxxxxxxxxxxxxxx>
> *Sent:* Wednesday, October 28, 2009 5:53 PM
> *To:* mirtoolbox@xxxxxxxxxxxxx
> *Subject:* [mirtoolbox] Re: help with miraudio
>
> Hello,
>
> I have used mp3read and it seems to work nicely, I am guessing you have it
> installed though because it did work with some of your mp3 files. My guess
> is rather that it can't open the file because you have a space in the file
> name?
>
> Best,
> Annika
>
> 2009/10/28 Markus Eichhoff <eichhoff@xxxxxxxxxxxxxxxxxxxxxxxx>
>
>> Hello Go,
>>
>> perhaps the mp3read function would be useful. You can search in the net
>> and download it. It is similar to wavread (a = mp3read('...mp3') ). And then
>> you can perhaps go on with processing the 'a' with the mirtoolbox. I don't
>> know exactly whether it works or not, but you could try.
>>
>> Best regards
>> Markus
>>
>>
>> Goh L.X schrieb:
>>
>> Hi,
>>>  I'm a student working on music retrieval for my final year project. I
>>> have a database of 3000 mp3 songs and I need to extract the mfcc features
>>> from these songs. However, some mp3 files could work with miraudio but some
>>> could not. The error is shown below. Could you help me with resolving this
>>> issue?
>>>  ??? Error using ==> mirread at 49
>>> ERROR: Cannot open file Hush Hush
>>>  Error in ==> miraudio.miraudio>main at 172
>>>    [d{1},tp{1},fp{1},f{1},b{1},n{1},ch{1}] = mirread(extract,orig,1,0);
>>>  Error in ==> miraudio.miraudio at 151
>>>    varargout = {main(orig,[],para,[],extract)};
>>>  Error in ==> mirdesign.evaleach at 56
>>>            y = miraudio(f,'Now',[ch(1),ch(2) 0]);
>>>  Error in ==> mirfunction at 102
>>>            [orig x] = evaleach(orig);
>>>  Error in ==> miraudio.miraudio at 153
>>>    varargout =
>>> mirfunction(@miraudio,orig,varargin,nargout,specif,@init,@main);
>>>  Error in ==> miraudio.miraudio>eachchunk at 383
>>> y = miraudio(orig,option);
>>>  Error in ==> mirdesign.evaleach>evalnow at 682
>>>    [y argin] = d.method(argin,d.option,d.postoption);
>>>  Error in ==> mirdesign.evaleach at 189
>>>            [ss d3] = evalnow(d2);
>>>  Error in ==> mireval>evalaudiofile at 196
>>>    v = evaleach(d,single,name);
>>>  Error in ==> mireval at 137
>>>    yf = evalaudiofile(d,a{f},sr{f},w{f},{},0,f,single,''); %% y = ...
>>>  Error in ==> mirfunction at 82
>>>            o = mireval(o,filename,nout);
>>>  Error in ==> miraudio.miraudio at 153
>>>    varargout =
>>> mirfunction(@miraudio,orig,varargin,nargout,specif,@init,@main);
>>>
>>>
>>
>>
>>
>
>
> --
> Annika Linke
> PhD Candidate
> MRC Cognition and Brain Sciences Unit
> 15 Chaucer Road
> Cambridge CB2 7EF
> UK
>
> Tel: +44 (0)1223 355294 ext 597
> Fax: +44 (0)1223 359062
>



-- 
Annika Linke
PhD Candidate
MRC Cognition and Brain Sciences Unit
15 Chaucer Road
Cambridge CB2 7EF
UK

Tel: +44 (0)1223 355294 ext 597
Fax: +44 (0)1223 359062

Other related posts: