Thread Subject: Convert from .wav to .raw

Subject: Convert from .wav to .raw

From: Fabrizio Di Paolo

Date: 29 Oct, 2009 14:11:03

Message: 1 of 2

Hi,

I have a problem about a speech recognition.

I have to modify a function that recognize the words in an audio file, but I need for a .raw file.

I record the speech from a microphone with wavrecord(), and so I obtain a .wav file.

So, the issue is: how can I convert .wav file in a .raw file?
Otherwise, can I get audio data directly in a .raw file?

Thanks to all.

Fabrizio

Subject: Convert from .wav to .raw

From: Dave Robinson

Date: 29 Oct, 2009 14:33:19

Message: 2 of 2

"Fabrizio Di Paolo" <fabry1981@gmail.com> wrote in message <hcc7pn$fat$1@fred.mathworks.com>...
> Hi,
>
> I have a problem about a speech recognition.
>
> I have to modify a function that recognize the words in an audio file, but I need for a .raw file.
>
> I record the speech from a microphone with wavrecord(), and so I obtain a .wav file.
>
> So, the issue is: how can I convert .wav file in a .raw file?
> Otherwise, can I get audio data directly in a .raw file?
>
> Thanks to all.
>
> Fabrizio

What do you mean by a .raw format? If you mean that the data isn't compressed, then I was under the impression that is exactly what the wavread gave you, thus

[rawdata,samplefrequency,digitizationlevel] = wavread(myfile.wav);

gives you a two column vector output in rawdata (one for the left microphone, one for the right - if you are messing about with a stereo setup). The samplefrequency gives you frequency at which it was sampled (set in wavrecord), and effectively digitizationlevel gives you the number of bits in your ADC which converted your data. Thus it is possible to apply all sorts of DSP algorithms, including speech recognition, directly on the rawdata array.

Come back if I have misunderstood you,

Regards

Dave Robinson

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
convert raw wav Fabrizio Di Paolo 29 Oct, 2009 10:14:05
rssFeed for this Thread

Contact us at files@mathworks.com