DesignAEC » History » Revision 21
Revision 20 (Adrian Georgescu, 02/19/2011 11:55 AM) → Revision 21/27 (Adrian Georgescu, 02/19/2011 11:57 AM)
= Acoustic Echo cancellation = [[TOC(Design*, depth=1)]] SIP SIMPLE client is a Python software library that allows for easy development of Internet communications end-points based on SIP and related protocols for voice, rich presence, session based instant messaging (IM), file transfers and desktop sharing. Other media types can be easily added by using an extensible high-level API. SIP SIMPLE client uses [http://www.pjsip.org/pjmedia/docs/html/index.htm PJSIP media library] for audio processing (sound card abstraction, audio codec and acoustic echo cancellation). For more information see http://sipsimpleclient.com. The project is maintained by AG Projects that can provide help to the developer to integrate its AEC implementation. == Background == The present implementation of the Acoustic Echo Canceller from PJSIP media library is not performing to the desired level of quality. Practically, the speakerphone function is not performing satisfactory. The result is that the software phone cannot be used without a head-set, which make people use proprietary applications like Skype or Google Talk. [[Image(http://www.pjsip.org/images/media-flow.jpg)]] == Project goal == Replace the existing AEC from Pjmedia library based on speex (what is displayed as echo.h in the above diagram whihc employes the AEC of the speex project) with Andree Adrian an alternative to be developed solution that provides a high quality speakerphone user experience. The acoustic echo cancelation should perform comparable with any other proven VoIP commercial solution like Skype or iChat making the need of a headset un-necessary. The developed software will be released under an Open Source licence and distributed with SIP SIMPLE client library. The deliverable is C written program that can be applied to the pjsip cvs trunk 1.0 with the '''patch''' command. == Resources == General * Digital Signal Processing http://www.dsptutor.freeuk.com/ * Graduation thesis about AEC implementation now available in Pulse Audio server. http://innovexpo.itee.uq.edu.au/2003/exhibits/s365914/ * DSP concepts: http://www.bores.com/courses/intro/basics/index.htm == PJMEDIA == This is the actual audio library used by SIP SIMPLE client. It is part of PJSIP, a complete framework for building SIP clients, having an open source license. * PJSIP media library http://pjsip.org, used by this project, AEC is implemented based on the Speex library, the code in pjsip/pjmedia/src/pjmedia/echo_speex.c * Media flow - http://trac.pjsip.org/repos/wiki/media-flow * PJSIP AEC API http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__Echo__Cancel.htm === Speex AEC === This is the AEC algorithm used by PJMEDIA that needs to be replaced by a better solution. The actual code is maintained by http://speex.org project. * Speex project http://speex.org, the echo canceller implements AEC based on the MDF algorithm, see speex/libspeex/mdf.c. A test client is available in speex/speexclient, this has been used for developing pjmedia equivalent * http://speex.org/docs/api/speex-api-reference/group__SpeexEchoState.html === Andree Adrian AEC === PulseAudio Pulse audio contain this echo canceler re-written in C in latest git repository in src/modules/echo-canceller/