Andy Ngo
2007-Jan-22 21:34 UTC
[Speex-dev] Clicking noise using Speex built for TI C64+ DSP of DaVinci Processor
Hi, 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 (ARM926) and a DSP (C64+, based on the C6400). I used the latest code (1.2beta) and followed the example in the speex- 1.2beta1/ti/speex_C64_test trunk to build the Speex library for the DSP. Basically I have a loopback application on the ARM that samples 8kHz 16-bit mono frames, gives them to the DSP to encode and decode them, and play the resulting decoded frames on the headphone. It seems to work but I get a clicking noise. I have verified that this is not due to an underrun problem by doing the same loopback bypassing Speex on the DSP side but added delay that is 3ms longer that than that of Speex encode and decode processing times, and got smooth audio with no clicking noise. Also, I fed the female.wav (posted on Speex site) through the Speex encoder and decoder on the DSP and got a resulting decoded_female.wav that has a clicking noise; since I can't post the wav file on this group, I can send it to anyone who's interested in helping me. Also, if I run the loopback application with Speex natively on the ARM side (not using the DSP), it works fine. I don't know where that clicking noise is coming from. Any advice/comments/suggestions? Here's what's included in my config.h file for Speex (compiled with -DCONFIG_TI_C6X): #define FIXED_POINT #define FRAME_SIZE 160 #define DISABLE_WIDEBAND #define MAX_CHARS_PER_FRAME (42/BYTES_PER_CHAR) #define MANUAL_ALLOC #define USER_MISC Speex narrow band parameters I'm using: Quality: 2 /* 5950 bps */ Enhancement: 0 Vbr: disabled Complexity: 1 The DaVinci processor is relatively new and I can't seem to find anyone who has successfully used Speex on the DSP side. Your help is appreciated. Thanks. Regards, Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20070122/f04464e4/attachment.html
Jean-Marc Valin
2007-Jan-23 02:57 UTC
[Speex-dev] Re: Clicking noise using Speex built for TI C64+ DSP of DaVinci Processor
Can you test your code with fixed-point on an x86 and see if you have the same problem. You can also try the generic fixed-point without TI-specific switches. The main thing I see that *could* cause problem is the 16-bit chars in the bitpacker. Jean-Marc Andy Ngo a ?crit :> Hi, > > 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 > (ARM926) and a DSP (C64+, based on the C6400). I used the latest code (1.2beta) and followed the example in the speex- > 1.2beta1/ti/speex_C64_test trunk to build the Speex library for the DSP. Basically I have a loopback application on the ARM that > samples 8kHz 16-bit mono frames, gives them to the DSP to encode and decode them, and play the resulting decoded frames on the > headphone. It seems to work but I get a clicking noise. I have verified that this is not due to an underrun problem by doing the same > loopback bypassing Speex on the DSP side but added delay that is 3ms longer that than that of Speex encode and decode processing > times, and got smooth audio with no clicking noise. Also, I fed the female.wav (posted on Speex site) through the Speex encoder and > decoder on the DSP and got a resulting decoded_female.wav that has a clicking noise; since I can't post the wav file on this group, I > can send it to anyone who's interested in helping me. > > Also, if I run the loopback application with Speex natively on the ARM side (not using the DSP), it works fine. > > I don't know where that clicking noise is coming from. Any advice/comments/suggestions? > > Here's what's included in my config.h file for Speex (compiled with -DCONFIG_TI_C6X): > > #define FIXED_POINT > #define FRAME_SIZE 160 > #define DISABLE_WIDEBAND > #define MAX_CHARS_PER_FRAME (42/BYTES_PER_CHAR) > #define MANUAL_ALLOC > #define USER_MISC > > Speex narrow band parameters I'm using: > Quality: 2 /* 5950 bps */ > Enhancement: 0 > Vbr: disabled > Complexity: 1 > > The DaVinci processor is relatively new and I can't seem to find anyone who has successfully used Speex on the DSP side. Your help > is appreciated. Thanks. > > Regards, > Andy
Seemingly Similar Threads
- Re: Clicking noise using Speex built for TI C64+ DSP of DaVinci Processor
- Re: Clicking noise using Speex built for TI C64+ DSP ofDaVinci Processor
- Speex support for TI DaVinci processor
- 4kbps sounds robotic on TMS320C64
- Speex support for TI DaVinci processor