search for: processdata

Displaying 18 results from an estimated 18 matches for "processdata".

2010 Aug 27
0
Question about encoding
...uot; 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"*, and this leads me to the question. Is it true that t...
2009 Nov 18
3
jspeex question
...ain" java.io.StreamCorruptedException: More than two sideband layers found I've got a feeling the SpeexDecoder class wants/assumes a certain amount of data when decoding and I'm not meeting that expectation. Is that correct? How much data should I hand to the decoder when I call the processData() method? Thanks! -- Jeff Ramin Software Engineer Singlewire Software PO Box 46218 Madison, WI 53744-6218 Phone Direct - 608.298.1024 www.singlewire.com
2005 Apr 20
4
Assign factor and levels inside function
R-help, After cogitating for a while, I finally figured out how to define a data.frame column as factor and assign the levels within a function... BUT I still need to pass the data.frame and its name separately. I can't seem to find any other way to pass the name of the data.frame, rather than the data.frame itself. Any suggestions on how to go about it? Is there something like
2006 Jul 18
1
SpeexEncoder requires 320 samples to process a Frame, not 160
...eexEncoder.getEncoder().setVbr(vbr); if (vbr_quality > 0) { 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...
2009 Nov 18
2
jspeex question
...Exception: More than > two sideband layers found > > I've got a feeling the SpeexDecoder class wants/assumes a certain amount > of data when decoding and I'm not meeting that expectation. > > Is that correct? How much data should I hand to the decoder when I call > the processData() method? > > Thanks! > > -- Jeff Ramin Software Engineer Singlewire Software PO Box 46218 Madison, WI 53744-6218 Phone Direct - 608.298.1024 www.singlewire.com
2001 Aug 13
1
Processing all *.dat worked. Thanks
...data[,indices],mean) sd<-sapply(data[,indices],sd) newOutput<-rbind(mean,sd) newOutput<-round(newOutput,digits=6) outputdsname<-c(paste(dsName,".summary",sep="")) write.table(t(newOutput),file=outputdsname,quote=FALSE, sep="\t",col.names=FALSE) } processData <-function(dat){ for (i in 1:length(dat)) { createSummary(dat[[i]]) } } processData(myDat) -- Paul E. Johnson email: pauljohn at ukans.edu Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn University of Kansas Office: (7...
2006 Jul 20
1
Invalid sideband mode encountered
...amplerate = 8000; int channels = 1; speexDecoder.init(mode, samplerate, channels, true); for (int packetCount = 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(&...
2009 Jul 16
1
Encoding/Decoding doubts
...a speex frame, i'm supposed to get linear > pcm at what sample > rate? The same as defined on the init? What about the > number of bits per > sample? > > -On the speex encoding part, the parameters needed on init > are related to > the linear pcm frame i should pass to processData and it > also indicates what > type of speex frame i will get? > What kind of pcm data can i use to feed the encoder? > > Maybe some of the questions don't make much sense, but i > can't get much info > on the subject. > > Thanks in advance, > > John
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 ap...
2007 Oct 10
0
encode return 0
...ctl(_State, 3 /*SPEEX_GET_FRAME_SIZE*/, __FrameSize); speex_encoder_ctl(_State, 16 /*SPEEX_SET_COMPLEXITY*/, __Complexity); speex_encoder_ctl(_State, 24 /*SPEEX_SET_SAMPLING_RATE*/, __SamplingRate); } _Bits = new SpeexBits(); //Data encoding public byte[] ProcessData(byte[] ABuffer, int ADataSize) { int OutputDataSize; short[] TempData = new short[ADataSize]; for (int Index = ADataSize-1; Index >= 0; Index--) TempData[Index] = (short)((ABuffer[Index] << 8) ^ 0x8000); fixed (short* __TempData = &Tem...
2009 Jul 12
0
Encoding/Decoding doubts
...the number of channels. -After decoding a speex frame, i'm supposed to get linear pcm at what sample rate? The same as defined on the init? What about the number of bits per sample? -On the speex encoding part, the parameters needed on init are related to the linear pcm frame i should pass to processData and it also indicates what type of speex frame i will get? What kind of pcm data can i use to feed the encoder? Maybe some of the questions don't make much sense, but i can't get much info on the subject. Thanks in advance, John -------------- next part -------------- An HTML attachment...
2009 Aug 05
0
endianess
...to speex, so i can then publish it to a flash client. On rtmp spec is said that is used network byte order, so in a speex frame consisted in more than 1 byte, i guess i have to send it in big endian order. By the source code of jspeex i see that when i pass pcm data as a parameter to SpeexEncoder.processData they use it as little endian and convert it to a float[] and only then the data is encoded to a byte[] of speex samples. I'm only getting noise on the flash client side, and i though it could be an endianess problem, doesn anyone have any suggetion? I'm recording the pcm16bit data to a ra...
2009 Nov 18
0
jspeex question
...Exception: More than > two sideband layers found > > I've got a feeling the SpeexDecoder class wants/assumes a certain amount > of data when decoding and I'm not meeting that expectation. > > Is that correct? How much data should I hand to the decoder when I call > the processData() method? > > Thanks! > > -- Jeff Ramin Software Engineer Singlewire Software PO Box 46218 Madison, WI 53744-6218 Phone Direct - 608.298.1024 www.singlewire.com
2009 Nov 18
0
jspeex question
...t; two sideband layers found >> >> I've got a feeling the SpeexDecoder class wants/assumes a certain amount >> of data when decoding and I'm not meeting that expectation. >> >> Is that correct? How much data should I hand to the decoder when I call >> the processData() method? >> >> Thanks! >> >> >> > > > -- Jeff Ramin Software Engineer Singlewire Software PO Box 46218 Madison, WI 53744-6218 Phone Direct - 608.298.1024 www.singlewire.com
2004 Aug 06
0
speed and memory
...ereo). But the best thing to do 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 &...
2004 Aug 06
2
optimization possible?
...iff2: 141 started. uls@mainframe:~/eclipse/avrelay$ <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, ulric...
2007 Apr 28
6
RESTful web service tutorial?
Hi, I would like to turn some of our simulation codes out to pasture and string some of them together by draping them in web services. I''m looking for a RESTful Camping tutorial to get started ... pointers appreciated. Some simple example applications: airfoil force calculator: feed it an airfoil geometry, an angle of attack, and a Mach number, and it returns the lift, drag, and
2012 Apr 15
6
CRAN (and crantastic) updates this week
CRAN (and crantastic) updates this week New packages ------------ * disclapmix (0.1) Maintainer: Mikkel Meyer Andersen Author(s): Mikkel Meyer Andersen and Poul Svante Eriksen License: GPL-2 http://crantastic.org/packages/disclapmix disclapmix makes inference in a mixture of Discrete Laplace distributions using the EM algorithm. * EstSimPDMP (1.1) Maintainer: Unknown Author(s):