Displaying 1 result from an estimated 1 matches for "narrrow".
Did you mean:
narrow
2010 Aug 27
0
Question about encoding
...m the microphone to an
"ByteArrayOutputStream" object and play it back.
I`m willing to add the encode\decode features of Jspeex but I can't make it
to work, I`m probably missing somethnig.
The code (Part of it) :
-----
speexEnc = new SpeexEncoder();
speexEnc.init(0, 5, 8000, 1); //narrrow-band, 5 quallity, 8khz, 1 channel
speexEnc.processData(buff, 0, buff.length); // 0 - the offset
---
buff is the byte array of the ByteArrayOutputStream (=the voice from the
microphone).
the exception I get from processData() method is:
*"Insufficient float buffer to convert the samples"...