hi Alex,<br>i used portAudiov18 to capture the voice its very easy to use. the speex client does give and example of capturing and encoding/decoding in real time. Although that is not what i'm doing right now perhaps it'll be of some help to you.<br><br>http://svn.xiph.org/trunk/speex/speexclient/<br><br><br><b><i>alex@gorex.com.hk</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> HI,<br> I am also working on VOIP application.<br>Now the speexenc.exe is used to encode a wav/raw file. However, in real time<br>voice communication, the voice keep recording from the microphone and how can<br>we employ speex to compress the voice and send over the network?<br><br>Thanks<br>Quoting Greg <caroundw5h@yahoo.com>:<br><br>> okay that questioned is answered, thank you.<br>><br>> I am interested in using speex in a VOIP application. do i need to put it in<br>> into<br>> the ogg contianer
format in order to encode/decode and send it? or will it<br>> work<br>> "as is"? if the latter then:<br>><br>> "the packet is larger than the allocated buffer" message: whats your<br>> recomendaton for fixing that? i was thinking simply getting the size of the<br>> frame<br>> and using the speex_bits_init_buffer() function to create a bigger buffer.<br>> However i<br>> want to keep latency in mind and make them as small as possible.<br>><br>> i apologise if the questions seem simple but i've working at this for sevreal<br>> days<br>> and i'm a little stump. a indication in the right direction would be helpful.<br>><br>> thank you in advance,<br>> greg<br>><br>><br>><br>><br>><br>> Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> wrote: > does this have<br>> anything to do with the message on the example code:<br>> > "the packing used is not compatible with speexenc/speexdec" i know it<br>>
> may sound stupid but it is my first time using speex lib. as well i<br>> > had assumed this was so and tweaked the decoder code to decode the<br>> > same file that the example encode code made, but i get a "packet is<br>> > larger than allocated buffer could not resize buffer, truncating<br>> > input" message.<br>><br>> Well, the note says it all. It's just not compatible. speexenc/dec pack<br>> Speex data into an Ogg container, while the sampleenc/dec code just<br>> creates an incompatible ad-hoc format just to demonstrate how to use<br>> Speex (without bothering with the heavy Ogg code).<br>><br>> Jean-Marc<br>><br>><br>><br>> ---------------------------------<br>> Building a website is a piece of cake.<br>> Yahoo! Small Business gives you all the tools to get online.<br><br><br><br></jean-marc.valin@usherbrooke.ca></caroundw5h@yahoo.com></blockquote><br><p> 
<hr size=1><a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367">Food fight?</a> Enjoy some healthy debate<br>in the <a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367">Yahoo! Answers Food & Drink Q&A.</a>