<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264463</link>
    <title>MATLAB Central Newsreader - Convert from .wav to .raw</title>
    <description>Feed for thread: Convert from .wav to .raw</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 29 Oct 2009 14:11:03 -0400</pubDate>
      <title>Convert from .wav to .raw</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264463#690662</link>
      <author>Fabrizio Di Paolo</author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
I have a problem about a speech recognition.&lt;br&gt;
&lt;br&gt;
I have to modify a function that recognize the words in an audio file, but I need for a .raw file. &lt;br&gt;
&lt;br&gt;
I record the speech from a microphone with wavrecord(), and so I obtain a .wav file.&lt;br&gt;
&lt;br&gt;
So, the issue is: how can I convert .wav file in a .raw file? &lt;br&gt;
Otherwise, can I get audio data directly in a .raw file?&lt;br&gt;
&lt;br&gt;
Thanks to all.&lt;br&gt;
&lt;br&gt;
Fabrizio</description>
    </item>
    <item>
      <pubDate>Thu, 29 Oct 2009 14:33:19 -0400</pubDate>
      <title>Re: Convert from .wav to .raw</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264463#690671</link>
      <author>Dave Robinson</author>
      <description>&quot;Fabrizio Di Paolo&quot; &amp;lt;fabry1981@gmail.com&amp;gt; wrote in message &amp;lt;hcc7pn$fat$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have a problem about a speech recognition.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have to modify a function that recognize the words in an audio file, but I need for a .raw file. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I record the speech from a microphone with wavrecord(), and so I obtain a .wav file.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; So, the issue is: how can I convert .wav file in a .raw file? &lt;br&gt;
&amp;gt; Otherwise, can I get audio data directly in a .raw file?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks to all.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Fabrizio&lt;br&gt;
&lt;br&gt;
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&lt;br&gt;
&lt;br&gt;
[rawdata,samplefrequency,digitizationlevel] = wavread(myfile.wav);&lt;br&gt;
&lt;br&gt;
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.&lt;br&gt;
&lt;br&gt;
Come back if I have misunderstood you,&lt;br&gt;
&lt;br&gt;
Regards&lt;br&gt;
&lt;br&gt;
Dave Robinson</description>
    </item>
  </channel>
</rss>

