this is in reply to a different message i posted a couple days ago , im not sure how to specifically reply to it sorry :( heres the message: thank you very much vinod this does give me a nicer idea :) but i still have a couple questions well firstly, speex_bits_write is still blocking forever, i can never seem to get past that line (i am using the armv4 build on ppc2002, but i havent found anyone having this issue anywhere) 2. your functions take in char*, does it matter that mine is unsigned char* since they are the same size ? meaning, can i simply just change the parameter type ? 3. does the type of my PCM data matter at all to speex? ie my bits per sample, samples per second, etc.. do i need to set those or is it ok with whatever format pcm data i give it ? Thank you SO much ! _________________________________________________________________ Take advantage of powerful junk e-mail filters built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*.
> 3. does the type of my PCM data matter at all to speex? ie my bits per > sample, samples per second, etc.. do i need to set those or is it ok with > whatever format pcm data i give it ?I can't comment much on the ARM builds, but I can tell you that bits per sample DOES matter. If the routine wants floats, you have to send samples as floats. If it wants shorts, it has to be shorts (16 bits/sample). As for sampling rate, you can change it a bit but not too much (narrowband is 8 kHz, wideband is 16, ...) Jean-Marc -- Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca> Universit? de Sherbrooke
Well I finally managed to get speex working :) Vinod I appreciate the wrapper code a lot, I found I couldn't get yours to work with the float conversion, but I changed to speex_encode_int instead and just passed in the shorts, and it worked perfect :) I am quite impressed with the quality, it sounds about the same as my PCM data.. however.. The mic on my ppc picks up EVERYTHING in the room, and I mean everything, including fans and whatnot.. is there a way to get that noise cancelled out and focus on the speech only ? I am using the ARM build by the way, if that makes any difference.. thanks :) _________________________________________________________________ MSN® Calendar keeps you organized and takes the effort out of scheduling get-togethers. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*.