[speex-dev] Getting a Side band error when decoding with Jspeex

rthummal rthummal at csnet.cs.odu.edu
Thu Apr 29 19:23:06 PDT 2004

I am trying to implement speex. Currently i am capturIng sound and encoding it using Pcm2SpeexAudioInputStream. I am feeding bytes from this stream to Speex2PcmAudioInputStream and trying to read decoded bytes. But here the decoder is giving me an error "saying sideband error" and values after it vary with every message.
I donno the reason for this, but I guess it is because of the format in which I am reading Audio Stream. 
I am reading using the following AudioFormat. Here it is a 16 bits/sample stereo sound. but Pcm2SpeexAudioInpputStream needs an input stream which would give a 16 bits/sample mono sound.
AudioFormat audioFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 44100, 16, 2, 4, 44100, false);
I am attaching the code I have written can anybody guide me to an implementation of speex using Jspeex api or suggest me changes in code.
any kind of help would be great!!!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: AudioCapture.java
Type: java/*
Size: 4195 bytes
Desc: AudioCapture.java
Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20040429/3464f9dc/AudioCapture-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SpeexPlayer.java
Type: java/*
Size: 2123 bytes
Desc: SpeexPlayer.java
Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20040429/3464f9dc/SpeexPlayer-0001.bin

More information about the Speex-dev mailing list