<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16441" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY
style="WORD-WRAP: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space"
bgColor=#ffffff>
<DIV><FONT face=新細明體 size=2>Great! I am trying now.</FONT></DIV>
<DIV><FONT face=新細明體 size=2>Thanks</FONT></DIV>
<DIV><FONT face=新細明體 size=2>Alex</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt 新細明體">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt 新細明體; font-color: black"><B>From:</B>
<A title=kubrick@fgv6.net href="mailto:kubrick@fgv6.net">François Guerraz</A>
</DIV>
<DIV style="FONT: 10pt 新細明體"><B>To:</B> <A title=alex@gorex.com.hk
href="mailto:alex@gorex.com.hk">ALEX NG</A> </DIV>
<DIV style="FONT: 10pt 新細明體"><B>Cc:</B> <A title=jim.crichton@comcast.net
href="mailto:jim.crichton@comcast.net">Jim Crichton</A> ; <A
title=greg@mytantrum.com
href="mailto:greg@mytantrum.com">greg@mytantrum.com</A> ; <A
title=speex-dev@xiph.org
href="mailto:speex-dev@xiph.org">speex-dev@xiph.org</A> </DIV>
<DIV style="FONT: 10pt 新細明體"><B>Sent:</B> Friday, May 25, 2007 11:27 PM</DIV>
<DIV style="FONT: 10pt 新細明體"><B>Subject:</B> Re: [Speex-dev] Re: compatibility
issues.</DIV>
<DIV><BR></DIV>Hi,
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>For the openSpeak project we use PortAudio V19 & speex. So if you
want some code examples, you can look an pick in our SVN (its GPL).</DIV>
<DIV>ATM we are having some problems with PortAudio v19 (it might still be
buggy somehow, it seems not to support the 32-kHz sampling
rate used by speex ultra-wide-band mode) so if you want something
stable you'd better use v18. And of course, if you have suggestions about our
code, feedback is most welcome.</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>-François</DIV>
<DIV> NB : openSpeak project home page : <A
href="http://www.openspeak-project.org">http://www.openspeak-project.org</A>/
, SVN : <A
href="http://openspeak.svn.sourceforge.net/viewvc/openspeak/branches/0.1/">http://openspeak.svn.sourceforge.net/viewvc/openspeak/branches/0.1/</A></DIV><BR>
<DIV>
<DIV>Le 25 mai 07 à 16:58, ALEX NG a écrit :</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<DIV style="MARGIN: 0px">I plan to setup linux server<SPAN
class=Apple-converted-space> </SPAN>and in client side, XP and
Linux.</DIV>
<DIV style="MARGIN: 0px">Also, in order to collect the voice, I plan to use
portaudio to collect, say 20ms as you suggested sample and feed to the speex
encoder.<SPAN class=Apple-converted-space> </SPAN>For easier
implementation, I don't use OGG container, and just encode then send to the
spread network to the client.</DIV>
<DIV style="MARGIN: 0px">Hope this work.<SPAN
class=Apple-converted-space> </SPAN>Can you advise any potential
problems by this approach?</DIV>
<DIV style="MARGIN: 0px">Thanks</DIV>
<DIV style="MARGIN: 0px">----- Original Message ----- From: "Jim Crichton"
<<A
href="mailto:jim.crichton@comcast.net">jim.crichton@comcast.net</A>></DIV>
<DIV style="MARGIN: 0px">To: <<A
href="mailto:alex@gorex.com.hk">alex@gorex.com.hk</A>></DIV>
<DIV style="MARGIN: 0px">Cc: <<A
href="mailto:greg@mytantrum.com">greg@mytantrum.com</A>>; <<A
href="mailto:speex-dev@xiph.org">speex-dev@xiph.org</A>></DIV>
<DIV style="MARGIN: 0px">Sent: Friday, May 25, 2007 10:31 PM</DIV>
<DIV style="MARGIN: 0px">Subject: Re: [Speex-dev] Re: compatibility
issues.</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<BLOCKQUOTE type="cite">
<DIV style="MARGIN: 0px">For a streaming application like VOIP, you
collect 20 ms of samples, feed this through the encoder, stick it in an
RTP packet, and send if over the network.<SPAN
class=Apple-converted-space> </SPAN>On the receive side you feed
packets through a jitter buffer to the decoder, and then copy the output
audio to your output device.<SPAN class=Apple-converted-space>
</SPAN>Speex runs efficiently on most compilers, so the real-time
requirement is not a big deal, as long as you know how to do this with
your operating system (if you have one).</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">You do not need Ogg containers for something like
this, just search the archives for RTP references and you will find much
more.</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">Look at the SpeexClient application provided in
the source tree, and at the testenc examples in the libspeex
directory.<SPAN class=Apple-converted-space> </SPAN>The Speex part
of things is pretty easy (thanks to Jean-Marc).<SPAN
class=Apple-converted-space> </SPAN>It is the audio interface for
your specific platform and the call setup protocals (e.g. SIP) where the
real work is.</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">If you identify the specific hardware/software
platform that you plan to use, then someone may be able to point you to
examples for the audio interface software.</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">- Jim</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">----- Original Message ----- From: <<A
href="mailto:alex@gorex.com.hk">alex@gorex.com.hk</A>></DIV>
<DIV style="MARGIN: 0px">To: "Greg" <<A
href="mailto:caroundw5h@yahoo.com">caroundw5h@yahoo.com</A>></DIV>
<DIV style="MARGIN: 0px">Cc: <<A
href="mailto:greg@mytantrum.com">greg@mytantrum.com</A>>; <<A
href="mailto:speex-dev@xiph.org">speex-dev@xiph.org</A>>; "Jean-Marc
Valin" <<A
href="mailto:jean-marc.valin@usherbrooke.ca">jean-marc.valin@usherbrooke.ca</A>></DIV>
<DIV style="MARGIN: 0px">Sent: Thursday, May 24, 2007 11:30 PM</DIV>
<DIV style="MARGIN: 0px">Subject: Re: [Speex-dev] Re: compatibility
issues.</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<BLOCKQUOTE type="cite">
<DIV style="MARGIN: 0px">HI,</DIV>
<DIV style="MARGIN: 0px"><SPAN
class=Apple-converted-space> </SPAN>I am also working on VOIP
application.</DIV>
<DIV style="MARGIN: 0px">Now the speexenc.exe is used to encode a
wav/raw file.<SPAN class=Apple-converted-space> </SPAN>However, in
real time</DIV>
<DIV style="MARGIN: 0px">voice communication, the voice keep recording
from the microphone and how can</DIV>
<DIV style="MARGIN: 0px">we employ speex to compress the voice and send
over the network?</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">Thanks</DIV>
<DIV style="MARGIN: 0px">Quoting Greg <<A
href="mailto:caroundw5h@yahoo.com">caroundw5h@yahoo.com</A>>:</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<BLOCKQUOTE type="cite">
<DIV style="MARGIN: 0px">okay that questioned is answered, thank
you.</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">I am interested in using speex in a VOIP
application. do i need to put it in</DIV>
<DIV style="MARGIN: 0px">into</DIV>
<DIV style="MARGIN: 0px">the ogg contianer format in order to
encode/decode and send it? or will it</DIV>
<DIV style="MARGIN: 0px">work</DIV>
<DIV style="MARGIN: 0px">"as is"? if the latter then:</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px"><SPAN
class=Apple-converted-space> </SPAN>"the packet is larger than
the allocated buffer" message: whats your</DIV>
<DIV style="MARGIN: 0px">recomendaton for fixing that? i was thinking
simply getting the size of the</DIV>
<DIV style="MARGIN: 0px">frame</DIV>
<DIV style="MARGIN: 0px">and using the speex_bits_init_buffer()
function to create a bigger buffer.</DIV>
<DIV style="MARGIN: 0px">However i</DIV>
<DIV style="MARGIN: 0px">want to keep latency in mind and make them as
small as possible.</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">i apologise if the questions seem simple but
i've working at this for sevreal</DIV>
<DIV style="MARGIN: 0px">days</DIV>
<DIV style="MARGIN: 0px">and i'm a little stump. a indication in the
right direction would be helpful.</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">thank you in advance,</DIV>
<DIV style="MARGIN: 0px">greg</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">Jean-Marc Valin <<A
href="mailto:jean-marc.valin@usherbrooke.ca">jean-marc.valin@usherbrooke.ca</A>>
wrote: > does this have</DIV>
<DIV style="MARGIN: 0px">anything to do with the message on the
example code:</DIV>
<DIV style="MARGIN: 0px">> "the packing used is not compatible with
speexenc/speexdec" i know it</DIV>
<DIV style="MARGIN: 0px">> may sound stupid but it is my first time
using speex lib. as well i</DIV>
<DIV style="MARGIN: 0px">> had assumed this was so and tweaked the
decoder code to decode the</DIV>
<DIV style="MARGIN: 0px">> same file that the example encode code
made, but i get a "packet is</DIV>
<DIV style="MARGIN: 0px">> larger than allocated buffer could not
resize buffer, truncating</DIV>
<DIV style="MARGIN: 0px">> input" message.</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">Well, the note says it all. It's just not
compatible. speexenc/dec pack</DIV>
<DIV style="MARGIN: 0px">Speex data into an Ogg container, while the
sampleenc/dec code just</DIV>
<DIV style="MARGIN: 0px">creates an incompatible ad-hoc format just to
demonstrate how to use</DIV>
<DIV style="MARGIN: 0px">Speex (without bothering with the heavy Ogg
code).</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px"><SPAN
class=Apple-converted-space> </SPAN>Jean-Marc</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">---------------------------------</DIV>
<DIV style="MARGIN: 0px">Building a website is a piece of cake.</DIV>
<DIV style="MARGIN: 0px">Yahoo! Small Business gives you all the tools
to get online.</DIV></BLOCKQUOTE>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV
style="MARGIN: 0px">_______________________________________________</DIV>
<DIV style="MARGIN: 0px">Speex-dev mailing list</DIV>
<DIV style="MARGIN: 0px"><A
href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</A></DIV>
<DIV style="MARGIN: 0px"><A
href="http://lists.xiph.org/mailman/listinfo/speex-dev">http://lists.xiph.org/mailman/listinfo/speex-dev</A></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV></BLOCKQUOTE>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">--<SPAN
class=Apple-converted-space> </SPAN></DIV>
<DIV style="MARGIN: 0px">No virus found in this incoming message.</DIV>
<DIV style="MARGIN: 0px">Checked by AVG Free Edition. Version: 7.5.467 /
Virus Database: 269.8.0/817 - Release Date: 2007/5/24 _U__
04:01</DIV></BLOCKQUOTE>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV
style="MARGIN: 0px">_______________________________________________</DIV>
<DIV style="MARGIN: 0px">Speex-dev mailing list</DIV>
<DIV style="MARGIN: 0px"><A
href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</A></DIV>
<DIV style="MARGIN: 0px"><A
href="http://lists.xiph.org/mailman/listinfo/speex-dev">http://lists.xiph.org/mailman/listinfo/speex-dev</A></DIV></BLOCKQUOTE></DIV><BR>
<DIV><SPAN class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 14px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; -khtml-text-decorations-in-effect: none; -apple-text-size-adjust: auto; orphans: 2; widows: 2">
<DIV>François Guerraz</DIV>
<DIV><A href="mailto:kubrick@fgv6.net">kubrick@fgv6.net</A></DIV>
<DIV><BR class=khtml-block-placeholder></DIV><BR
class=Apple-interchange-newline></SPAN></DIV><BR>
<P>
<HR>
<P></P>No virus found in this incoming message.<BR>Checked by AVG Free
Edition. <BR>Version: 7.5.467 / Virus Database: 269.8.0/817 - Release Date:
2007/5/24 $U$H 04:01<BR></BLOCKQUOTE></BODY></HTML>