<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6487.1">
<TITLE>computing speex packets duration</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>
<P><FONT SIZE=2 FACE="Arial">hi all,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">im sending my speex packets from one PC to another across the Internet via TCP. rigth now, i am working on a buffering solution to ensure the continuity of voice playback on the recieving end. to solve this, i need to determine the size (in milliseconds) of the incoming packets. how do i compute this? </FONT></P>
<P><FONT SIZE=2 FACE="Arial">my speex settings are as follows:</FONT>
<BR><FONT SIZE=2 FACE="Arial">- narrow-band mode</FONT>
<BR><FONT SIZE=2 FACE="Arial">- quality level 4</FONT>
<BR><FONT SIZE=2 FACE="Arial">- 10 speex frames/per packet</FONT>
<BR><FONT SIZE=2 FACE="Arial">- 8Khz source PCM</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">say for example that T is the time it takes in milliseconds for each packet to reach its destination, and for the purpose of this discussion let T be fixed for each transmission. now, the speex packets coming in will all be buffered, and playback should only be triggered after the amount of voice data (in milliseconds) exceeds T, there after playing each packet on a FIFO basis.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">the settings above generates 20 bytes of encoded data per frame, so that i have a whole packet of 200 bytes. </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">thanks.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">ronald</FONT>
</P>
<BR>
</BODY>
</HTML>