<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><var id="yui-ie-cursor"></var>Hi,</div><div> </div><div>Is there anybody out there who can tell me how to solve the following problem:</div><div> </div><div>An RTP payload of encoded speex data is received. The length of the payload is</div><div>N bytes. The length corresponds to 20ms * K of encoded audio where K is an</div><div>unknown integer. The audio was encoded by an encoder in wideband mode.</div><div> </div><div>How do I partition the payload when I don't know which bitrate mode of the</div><div>encoder? I want to hand over 20ms of encoded audio to the decoder, but to be</div><div>able to do that I need to know how many bytes of the payload corresponds to</div><div>20ms.</div><div> </div><div>I read that the bitrate mode and the wideband bit is embedded in the first byte, but</div><div>that is not
what I actually see. What I see is that the MSB of the first encoded byte</div><div>is 0 and the following bits do not correspond to the bitrate mode that was used when</div><div>encoding the audio.</div><div> </div><div>So I am wondering what I am doing wrong.</div><div> </div><div>Is it because the first part of the payload is a narrowband bitstream ? And I need to </div><div>extract the narrowband bitrate mode first, figure out how many bytes (M) that mode</div><div>corresponds to and skip M bytes ahead to get the wideband</div><div>bitrate mode? </div><div> </div><div>Or is there a quicker way of doing it?</div><div> </div><div>Can somebody please shed some light on this??</div><div> </div><div>Thank you!!</div><div> </div><div> </div></div></body></html>