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>&gt; okay that questioned is answered, thank you.<br>&gt;<br>&gt; I am interested in using speex in a VOIP application. do i need to put it in<br>&gt; into<br>&gt; the ogg contianer
 format in order to encode/decode and send it? or will it<br>&gt; work<br>&gt; "as is"? if the latter then:<br>&gt;<br>&gt;  "the packet is larger than the allocated buffer" message: whats your<br>&gt; recomendaton for fixing that? i was thinking simply getting the size of the<br>&gt; frame<br>&gt; and using the speex_bits_init_buffer() function to create a bigger buffer.<br>&gt; However i<br>&gt; want to keep latency in mind and make them as small as possible.<br>&gt;<br>&gt; i apologise if the questions seem simple but i've working at this for sevreal<br>&gt; days<br>&gt; and i'm a little stump. a indication in the right direction would be helpful.<br>&gt;<br>&gt; thank you in advance,<br>&gt; greg<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> wrote: &gt; does this have<br>&gt; anything to do with the message on the example code:<br>&gt; &gt; "the packing used is not compatible with speexenc/speexdec" i know it<br>&gt;
 &gt; may sound stupid but it is my first time using speex lib. as well i<br>&gt; &gt; had assumed this was so and tweaked the decoder code to decode the<br>&gt; &gt; same file that the example encode code made, but i get a "packet is<br>&gt; &gt; larger than allocated buffer could not resize buffer, truncating<br>&gt; &gt; input" message.<br>&gt;<br>&gt; Well, the note says it all. It's just not compatible. speexenc/dec pack<br>&gt; Speex data into an Ogg container, while the sampleenc/dec code just<br>&gt; creates an incompatible ad-hoc format just to demonstrate how to use<br>&gt; Speex (without bothering with the heavy Ogg code).<br>&gt;<br>&gt;  Jean-Marc<br>&gt;<br>&gt;<br>&gt;<br>&gt; ---------------------------------<br>&gt; Building a website is a piece of cake.<br>&gt; 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>&#32;

<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>