<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Hi,</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">I've been trying to get Speex to compile and run on the DSP of TI's new DaVinci System-On-Chip processor, which has both an ARM</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">(ARM926) and a DSP (C64+, based on the C6400).&nbsp; I used the latest code (1.2beta) and followed the example in the speex-</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">1.2beta1/ti/speex_C64_test trunk to build the Speex library for the DSP.&nbsp; Basically I have a&nbsp;loopback application on&nbsp;the ARM that</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">samples&nbsp;8kHz 16-bit mono frames, gives them to the DSP to encode and decode them, and play the resulting decoded frames on the</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">headphone.&nbsp; It seems to work but I get a clicking noise.&nbsp; I have verified that this is not due to&nbsp;an underrun problem by doing the same</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">loopback&nbsp;bypassing Speex on the DSP side but added delay that is 3ms longer that than that of Speex encode and decode processing</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">times, and got smooth&nbsp;audio with no clicking noise.&nbsp; Also, I&nbsp;fed the female.wav (posted on Speex site)&nbsp;through the Speex encoder and</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">decoder on the DSP and got a resulting decoded_female.wav&nbsp;that has a clicking noise; since I can't post the wav file on this group, I </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">can send it to anyone who's interested in helping me.</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Also, if I run the loopback application with Speex natively on the ARM side (not using the DSP), it works fine.</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">I don't know where that clicking noise is coming from.&nbsp; Any advice/comments/suggestions?</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Here's what's included in my config.h file for Speex (compiled with -DCONFIG_TI_C6X):</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">#define FIXED_POINT<BR>#define FRAME_SIZE 160<BR>#define DISABLE_WIDEBAND</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">#define MAX_CHARS_PER_FRAME (42/BYTES_PER_CHAR)</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">#define MANUAL_ALLOC<BR>#define USER_MISC</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Speex narrow band parameters I'm using:</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;&nbsp;&nbsp; Quality: 2&nbsp;&nbsp; /* 5950 bps */</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;&nbsp;&nbsp; Enhancement: 0</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;&nbsp;&nbsp; Vbr: disabled</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;&nbsp;&nbsp; Complexity: 1</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">The DaVinci processor is relatively new and I can't seem to find anyone who has successfully used Speex on the DSP side.&nbsp; Your help</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">is appreciated.&nbsp; Thanks.</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Regards,</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Andy</DIV></DIV></DIV><BR></DIV></div></body></html>