<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic sample usc_speech_codec decoding problem in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/sample-usc-speech-codec-decoding-problem/m-p/860552#M7689</link>
    <description>&lt;P&gt;Hi, I just downloaded Intel IPP library for mac os. There are some ipp sample codes. I built the sample application, usc_speech_codec application and ran it. I'm interested in the decoding. I tried to decode GSM 6.10 wave format to PCM. I have a GSM 6.10 wave file(8kgsm.wav) that i downloaded from the web elsewhere. when I tried to run the decoding process:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;./usc_speech_codec [options] &lt;INUSCFILE&gt; &lt;OUTWAVEFILE&gt; &lt;/OUTWAVEFILE&gt;&lt;/INUSCFILE&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;it complainted that the input file format unknow, "FAIL:Unknown decode format."&lt;/P&gt;
&lt;P&gt;However, if I ran the encoder first(using the same usc_speech_codec app), PCM -&amp;gt; GSM 6.10(examplegsm.wav), then decoder GSM 6.10 -&amp;gt; PCM, the decoder will run successful. Why?&lt;/P&gt;
&lt;P&gt;When I took the further look, the formatTag embedded inside the header between 8kgsm.wav &amp;amp; examplegsm.wav is different.&lt;/P&gt;
&lt;P&gt;formatTag(compression code) value for 8kgsm.wav is 0x0031&lt;/P&gt;
&lt;P&gt;formatTag value for examplegsm.wav is 0x7298&lt;/P&gt;
&lt;P&gt;Aren't the compression code value standard?&lt;/P&gt;
&lt;P&gt;The following is a list of the common compression codes used today(from &lt;A href="http://www.sonicspot.com/guide/wavefiles.html#fmt)" target="_blank"&gt;http://www.sonicspot.com/guide/wavefiles.html#fmt)&lt;/A&gt;.&lt;/P&gt;
&lt;TABLE border="0" cellspacing="1" cellpadding="4" bgcolor="#000000"&gt;
&lt;TBODY&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;0 (0x0000)&lt;/TD&gt;
&lt;TD&gt;Unknown&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;1 (0x0001)&lt;/TD&gt;
&lt;TD&gt;PCM/uncompressed&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;2 (0x0002)&lt;/TD&gt;
&lt;TD&gt;Microsoft ADPCM&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;6 (0x0006)&lt;/TD&gt;
&lt;TD&gt;ITU G.711 a-law&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;7 (0x0007)&lt;/TD&gt;
&lt;TD&gt;ITU G.711 -law&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;17 (0x0011)&lt;/TD&gt;
&lt;TD&gt;IMA ADPCM&lt;/TD&gt;
&lt;/TR&gt;
&lt;!--  
&lt;tr bgcolor="dddddd"&gt;
&lt;td&gt;19 (0x0013)&lt;/td&gt;
&lt;td&gt;ADPCM (Sierra)&lt;/td&gt;
&lt;/tr&gt;
--&gt;  
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;20 (0x0016)&lt;/TD&gt;
&lt;TD&gt;ITU G.723 ADPCM (Yamaha)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;49 (0x0031)&lt;/TD&gt;
&lt;TD&gt;GSM 6.10&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;64 (0x0040)&lt;/TD&gt;
&lt;TD&gt;ITU G.721 ADPCM&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;80 (0x0050)&lt;/TD&gt;
&lt;TD&gt;MPEG&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;How come IPP using different compression code values than standard? e.g. 0x7298 vs 0x0031 for GSM 6.10&lt;/P&gt;
&lt;P&gt;Therefore it seems like the sample application, usc_speech_codec, can only decodes the files that were encoded first by itself.&lt;/P&gt;
&lt;P&gt;why?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Fri, 24 Oct 2008 06:41:40 GMT</pubDate>
    <dc:creator>sweepang</dc:creator>
    <dc:date>2008-10-24T06:41:40Z</dc:date>
    <item>
      <title>sample usc_speech_codec decoding problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/sample-usc-speech-codec-decoding-problem/m-p/860552#M7689</link>
      <description>&lt;P&gt;Hi, I just downloaded Intel IPP library for mac os. There are some ipp sample codes. I built the sample application, usc_speech_codec application and ran it. I'm interested in the decoding. I tried to decode GSM 6.10 wave format to PCM. I have a GSM 6.10 wave file(8kgsm.wav) that i downloaded from the web elsewhere. when I tried to run the decoding process:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;./usc_speech_codec [options] &lt;INUSCFILE&gt; &lt;OUTWAVEFILE&gt; &lt;/OUTWAVEFILE&gt;&lt;/INUSCFILE&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;it complainted that the input file format unknow, "FAIL:Unknown decode format."&lt;/P&gt;
&lt;P&gt;However, if I ran the encoder first(using the same usc_speech_codec app), PCM -&amp;gt; GSM 6.10(examplegsm.wav), then decoder GSM 6.10 -&amp;gt; PCM, the decoder will run successful. Why?&lt;/P&gt;
&lt;P&gt;When I took the further look, the formatTag embedded inside the header between 8kgsm.wav &amp;amp; examplegsm.wav is different.&lt;/P&gt;
&lt;P&gt;formatTag(compression code) value for 8kgsm.wav is 0x0031&lt;/P&gt;
&lt;P&gt;formatTag value for examplegsm.wav is 0x7298&lt;/P&gt;
&lt;P&gt;Aren't the compression code value standard?&lt;/P&gt;
&lt;P&gt;The following is a list of the common compression codes used today(from &lt;A href="http://www.sonicspot.com/guide/wavefiles.html#fmt)" target="_blank"&gt;http://www.sonicspot.com/guide/wavefiles.html#fmt)&lt;/A&gt;.&lt;/P&gt;
&lt;TABLE border="0" cellspacing="1" cellpadding="4" bgcolor="#000000"&gt;
&lt;TBODY&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;0 (0x0000)&lt;/TD&gt;
&lt;TD&gt;Unknown&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;1 (0x0001)&lt;/TD&gt;
&lt;TD&gt;PCM/uncompressed&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;2 (0x0002)&lt;/TD&gt;
&lt;TD&gt;Microsoft ADPCM&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;6 (0x0006)&lt;/TD&gt;
&lt;TD&gt;ITU G.711 a-law&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;7 (0x0007)&lt;/TD&gt;
&lt;TD&gt;ITU G.711 -law&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;17 (0x0011)&lt;/TD&gt;
&lt;TD&gt;IMA ADPCM&lt;/TD&gt;
&lt;/TR&gt;
&lt;!--  
&lt;tr bgcolor="dddddd"&gt;
&lt;td&gt;19 (0x0013)&lt;/td&gt;
&lt;td&gt;ADPCM (Sierra)&lt;/td&gt;
&lt;/tr&gt;
--&gt;  
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;20 (0x0016)&lt;/TD&gt;
&lt;TD&gt;ITU G.723 ADPCM (Yamaha)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;49 (0x0031)&lt;/TD&gt;
&lt;TD&gt;GSM 6.10&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;64 (0x0040)&lt;/TD&gt;
&lt;TD&gt;ITU G.721 ADPCM&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR bgcolor="#dddddd"&gt;
&lt;TD&gt;80 (0x0050)&lt;/TD&gt;
&lt;TD&gt;MPEG&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;How come IPP using different compression code values than standard? e.g. 0x7298 vs 0x0031 for GSM 6.10&lt;/P&gt;
&lt;P&gt;Therefore it seems like the sample application, usc_speech_codec, can only decodes the files that were encoded first by itself.&lt;/P&gt;
&lt;P&gt;why?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2008 06:41:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/sample-usc-speech-codec-decoding-problem/m-p/860552#M7689</guid>
      <dc:creator>sweepang</dc:creator>
      <dc:date>2008-10-24T06:41:40Z</dc:date>
    </item>
  </channel>
</rss>

