search for: getprocesseddata

Displaying 5 results from an estimated 5 matches for "getprocesseddata".

2006 Jul 18
1
SpeexEncoder requires 320 samples to process a Frame, not 160
...{ speexEncoder.getEncoder().setVbrQuality(vbr_quality); } } if (vad) { speexEncoder.getEncoder().setVad(vad); } if (dtx) { speexEncoder.getEncoder().setDtx(dtx); } int pcmPacketSize = 320; speexEncoder.processData(cmbuffer, 0, pcmPacketSize); nbBytes = speexEncoder.getProcessedData(temp, 0); return temp; } public static byte[] decode(byte[] decbuffer) { SpeexDecoder speexDecoder = new SpeexDecoder(); int packetCount = 0; byte[] payload = new byte[65536]; int bodybytes = nbBytes; int decsize = 0; int Totsize = 0; byte[] completebuffer = new byte[4000...
2006 Jul 20
1
Invalid sideband mode encountered
...ount = 0; packetCount < getNbPackets();packetCount++) { System.arraycopy(decbuffer, packetCount*encodedNbBytes(), payload, 0, encodedNbBytes()); try { speexDecoder.processData(payload,0, encodedNbBytes()); byte[] decoded = new byte[FRAME_SIZE*2]; decodedNbBytes = speexDecoder.getProcessedData(decoded, 0); System.arraycopy(decoded, 0, completebuffer, packetCount*decodedNbBytes, decodedNbBytes); } catch(StreamCorruptedException s) { System.out.println("Error ---> "+s.getMessage()); } } return completebuffer; } encodedNbBytes is a function that...
2004 Aug 06
2
speed and memory
hello, i switched to use the encoder.processData() and encoder.getProcessedData() of jspeex. however it looks to me like a memory leak ... memory usage is increasing very fast and there is no visible stop ... after about five minutes java.lang.OutOfMemory occurs. I think it must be the jspeex component, because before i added jspeex to my app usage was constant at about 5m...
2004 Aug 06
0
speed and memory
...is play around with the various settings and see which settings suit you best with the given resources on your hardware. Good luck Marc Gimpel Head of research Wimba Ulrich B. Staudinger wrote: > hello, > > i switched to use the encoder.processData() and > encoder.getProcessedData() of jspeex. however it looks to me like a > memory leak ... memory usage is increasing very fast and there is no > visible stop ... after about five minutes java.lang.OutOfMemory > occurs. I think it must be the jspeex component, because before i > added jspeex to my app usage was...
2004 Aug 06
2
optimization possible?
...p>{ SpeexEncoder e1=new SpeexEncoder(); e1.init(0,1,44100,1); byte[] by1=new byte[320]; long l1=System.currentTimeMillis(); long l2=System.currentTimeMillis(); System.out.println("Diff1: "+(l2-l1)); e1.processData(by1,0,by1.length); System.out.println(e1.getProcessedDataByteSize()); l2=System.currentTimeMillis(); System.out.println("Diff2: "+(l2-l1)); System.out.println("started."); } <p>Is there a way to optimize this outstanding cruncher? thanks, ulrich --- >8 ---- List archives: http://www.xiph.org/archives...