<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Peter,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>testenc-TI-C5x.c was derived from the standard
example file libspeex/testenc.c, and it operates only at 8kbps. I was
preparing a patch for this file already, so I tried running 11kbps. I
found one bug, and I changed the file so that a few defines at the top are all
that is needed to change rates. I just submitted this patch this morning
in another thread. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>To use the sample build in the simulator, you need
to:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1.</FONT></DIV>
<DIV><FONT face=Arial size=2>#define DECODE_ONLY</FONT></DIV>
<DIV><FONT face=Arial size=2>#define TESTENC_BYTES_PER_FRAME 28 /* 11kbps
*/<BR>#define TESTENC_QUALITY 5 /* 11 kbps
*/<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>If you have the original audio file and want to
compare the result, then</FONT></DIV>
<DIV><FONT face=Arial size=2>#define CHECK_RESULT /* Compares original
file with encoded/decoder file */<BR></DIV></FONT>
<DIV><FONT face=Arial size=2>2. Change the filenames to the strings that
you want.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Note that the number of bits/frame is 220, so there
are four pad bits at the end of each frame (to 224 bits, which is 14
chars). If your input file does not have these pad bits, then you will
need to make some changes to the interface. You would not call
speex_bits_reset after each frame, and you would have to look into the bits
structure to see how many bytes to write for the next frame (26 or 28), probably
using speex_bits_read_whole_bytes. I have never played with that
myself.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jim Crichton</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=peter.mlakar@email.si href="mailto:peter.mlakar@email.si">Peter
Mlakar</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=speex-dev@xiph.org
href="mailto:speex-dev@xiph.org">speex-dev@xiph.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, April 22, 2006 6:02
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Speex-dev] DSP C5xx decode to
pcm 16bit</DIV>
<DIV><BR></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Arial Unicode MS'; mso-ansi-language: EN-US">I
am wont to decode a speex 11kbps 8kHz 16bit to a raw data 8kHz 16bit LSB on a
c5509. <SPAN
style="mso-spacerun: yes"> </SPAN> <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Arial Unicode MS'; mso-ansi-language: EN-US">Trying
to understand the “testenc-TI-C5x.c” exsample, but it looks to me wary
complicated.<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Arial Unicode MS'; mso-ansi-language: EN-US">Is
there more documentation for the exsample or a decoder exsample
available?<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Arial Unicode MS'; mso-ansi-language: EN-US"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Arial Unicode MS'; mso-ansi-language: EN-US">Can
somebody help?</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Arial Unicode MS'; mso-ansi-language: EN-US"></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Arial Unicode MS'; mso-ansi-language: EN-US">Peter<o:p></o:p></SPAN></P>
<P></P><FONT face=Arial size=2></FONT>
<HR>
<P></P>_______________________________________________<BR>Speex-dev mailing
list<BR>Speex-dev@xiph.org<BR>http://lists.xiph.org/mailman/listinfo/speex-dev<BR></BLOCKQUOTE></BODY></HTML>