Hacking with GTalk's voice bytes

Paul Aurich darkrain42 at pidgin.im
Thu Dec 31 01:00:03 EST 2009


Caveat: I know not-that-much about the jingle/media stuff.

And Payton Byrd spoke on 12/24/2009 03:17 PM, saying:
> Hi Everyone,
> 
> I'm playing around with the pidgin source code (changes not for
> distributing - just for my own learning). I'd like to be able to process
> the *raw* voice buffers from GTalk; basically encode the voice before
> it's sent and decode it before it is output to the user.
> 
> I'm new to the code, and I was wondering if anyone could tell me if this
> were possible, and if so, where to look. I've been grepping (for voice,
> send, talk, etc.) and putting printfs in the code in hopes of finding
> it, but have been unsuccessful so far. I've been looking under
> libpurple, libpurple/protocols/jabber.
> 
> Merry Christmas and a Happy New Year all!
> 
> -- P
> 
> P.S. I know the standard way to add features is via plugins. I'm not
> looking to develop and distribute anything, just playing around for my
> own learning. However if it is easier to do what I intend to do via
> plugins, please advise me. Many thanks!

You probably want to do this by hooking into the media pipeline; my
understanding is that Farsight/Gstreamer (the libraries used to provide a
lot of the av capabilities) are designed in a pluggable manner, so you can
insert your own filter into the chain and do whatever you want to the
stream before passing it on to whatever happens next.

That said, I don't have any idea how to go about doing this, other than to
look at the media API in libpurple/media* and farsight/gstreamer.

~Paul

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://pidgin.im/pipermail/devel/attachments/20091230/88116047/attachment.sig>


More information about the Devel mailing list