search for: speexdecod

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

Did you mean: speexdecode
2006 Jul 20
1
Invalid sideband mode encountered
...use of this, i cannot decode. Does anybody have an idea on fixing this error? I've attached parts of my code to ths email: //Declare the class mySpeexEncDec test = new mySpeexEncDec (); //Decoding procedure public static byte[] decode(byte[] decbuffer, int myBufferSize) { SpeexDecoder speexDecoder = new SpeexDecoder(); byte[] payload = new byte[FRAME_SIZE*2]; byte[] completebuffer = new byte[4000000]; int mode = 0; int samplerate = 8000; int channels = 1; speexDecoder.init(mode, samplerate, channels, true); for (int packetCount = 0; packetCount < get...
2006 Jul 18
1
SpeexEncoder requires 320 samples to process a Frame, not 160
...der().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[4000000]; Totsize = myNum * bodybytes; speexDecoder.init(1, 8000, 1, true); while((pack...
2007 May 31
0
problem with speexdecode.
I compiled speex1.2 on my linux box and they used speexenc to transcode an 16khz 16bit PCM mono wav file into speex. I used quailty 4. When I try and decode the file with speexdec back into the wav I get an error unknown nb_cbl request 39 and then a segmentation fault. Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL:
2009 Nov 18
3
jspeex question
...at file, extract the audio bits, and convert them to a different format. I've written a little java app to do this, but I receive this error when running it: Exception in thread "main" 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-621...
2009 Nov 18
2
jspeex question
...convert them to a different format. > > I've written a little java app to do this, but I receive this error when > running it: > > Exception in thread "main" 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 So...
2007 Aug 24
0
speex DTX chore
...speex_bits_write(&bits, buffer, 500); //IntToFourChar(nbBytes, &output[*written]); CopyMemory( output, buffer, nbBytes); *written = nbBytes; return transmit; }; //eof Encode()======================================================= [/code] [code] // Tester.cpp #include "SpeexDecoder.h" #include "SpeexEncoder.h" #include "lpc_win.h" #include <windows.h> #include <stdio.h> const int SAMPLES_LEN = 160; const int CODED_DATA_LEN = 20; const int FREQ = 8000; const int QLTY = 4; const int VAD = 1; const int DENIOSE = 1; const int AGC = 1; cons...
2004 Aug 06
2
header question
...rtant for you? > I write another voice relay and i use java speex. whenever a new user connects to a channel on the relay i transmit the header and after that i transmit the live speex encoded channel data. i am right now just splitting the header from the content to do the initialization of SpeexDecoder the manual way. however i am not that sure if i shouldn't (for easiness' sake) tweak org.xiph.speek to open the audio output line straight away by implementing another class based on PcmWaveWriter .... that way i don't have to split header from content ... do you have some hints?...
2004 Aug 06
0
header question
...I write another voice relay and i use java speex. whenever a new user > connects to a channel on the relay i transmit the header and after > that i transmit the live speex encoded channel data. i am right now > just splitting the header from the content to do the initialization of > SpeexDecoder the manual way. > > however i am not that sure if i shouldn't (for easiness' sake) tweak > org.xiph.speek to open the audio output line straight away by > implementing another class based on PcmWaveWriter .... that way i > don't have to split header from content ......
2004 Aug 06
0
Invalid mode encountered: corrupted stream?
...dec_state, SPEEX_RESET_STATE,NULL); speex_decoder_ctl(dec_state, SPEEX_SET_ENH, &falso); } void SpeexEncode(short *samples, char *encoded) { speex_bits_reset(&enc_bits); speex_encode(enc_state, samples, &enc_bits); enc_nbBytes = speex_bits_write(&enc_bits, encoded, 20); } void SpeexDecode(char *encoded, short *sample) { speex_bits_read_from(&dec_bits, encoded, 20); speex_decode(dec_state, &dec_bits, sample); } <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message...
2004 Aug 06
0
JSPEEX ?
Hi, I downloaded Ulrich's TestClient and have not been able to connect to the default server. I will try to modify and get to work locally(local echo). I wanted to test my SpeexDecoder as no matter what I try I alwasy get an java.io.StreamCorruptedException: Invalid sideband mode encountered. (2nd sideband): 7 Please note that the Invalid sideband modes differ per file but the end result is always the same - I cannot decod any speex files. I've tried Ogg Speex/Wave Speex...
2007 Aug 21
0
Need help on making speex AEC to work
...Listener() { public void recorded(Object source, byte[] bytes, int length) { // WHEN A FRAME IS CAPTURED, THIS CALLBACK WILL BE TRIGGERED int c = speexEncode(bytes); // this is just for local playback, a demo only speexDecode(bytes, c); p.write(bytes, 0, length); // THIS IS WHERE A FRAME WAS WRITTEN FOR PLAYBACK } }); p.start(); r.start(); Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { speexD...
2007 Nov 14
0
Audio glitches/Configuration problem !!?
...eexBits, output, outMAXSize); input += m_FrameSizeInBytes; output += bytes; *outSize += bytes; tmpBufferSize -= m_FrameSizeInBytes; } // if we consumed data from the buffer, it needs to be rearanged in order to keep only .... return true; } bool SpeexDecoder::DecodeData( char * inBuffer, int inSize, char ** outBuffer, int outMAXSize, int* outSize) { if(!m_Initialized) return false; int remains = inSize; char * input = inBuffer; short * output = (short*) *outBuffer; int size = 0; while(remains > 0) {...
2007 Nov 20
0
speex_bits_write / speex_bits_read_from - getting Static
...^ output = gcnew array<Byte>(numBytes); for(i = 0; i< numBytes; i++) output[i] = (unsigned char)outputFrame[i]; //end lazy man's conversion return output; } //Public function -- m_decoderState is a void* member, m_bits is a SpeexBits* member array<short>^ SpeexDecoder::Decode(array<Byte>^ inputBytes) { short* outputFrame = (short*) malloc(m_frameSize*sizeof(short)); speex_bits_reset(m_bits); if(inputBytes != nullptr) { //begin lazy man's way of converting to regular C std::string input; unsigned int inputLength = i...
2009 Nov 18
0
jspeex question
...convert them to a different format. > > I've written a little java app to do this, but I receive this error when > running it: > > Exception in thread "main" 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 S...
2009 Nov 18
0
jspeex question
...at. >> >> I've written a little java app to do this, but I receive this error when >> running it: >> >> Exception in thread "main" 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! >> >> >> &g...
2004 Aug 06
3
q about jspeex
Hi Marc, thanks for the quick reply. Marc Gimpel wrote: > It would appear the the 'pcm2speex.read(frame, 0, frame.length)' is > blocking which means that it is waiting for data from the underlying > inputstream (i.e.AudioInputStream(t.input)). If it could read > sufficient data it would transcode it. If it recieved an EOF, it > should do some zero padding and then
2004 Aug 06
2
header question
hi, a simple question which i can't answer through the manuals ... is the header always 80 bytes long? thanks in advance, ulrich -- Ulrich B. Staudinger http://www.die-horde.de email: us@die-horde.de jid: uls@jabber.org current project: REDHORN http://redhorn.sourceforge.net Blog: uls@jabber.org">http://jabber.linux.it/jogger/user.php?jid=uls@jabber.org</a> <p>---
2004 Aug 06
2
Speex API for use with .Net applications
...- First register is with: regsvr32 speex.dll - Then add a reference to it in the application and use it. - If I have the API (again as .dll): - I use the System.Runtime.Interop services namespace - Add a reference to it using this code: --- Begin Code Snip --- Public Class SpeexDecoder Public Declare Funtion (FunctionName) Lib "speex.dll" Alias "DecodeFile" (ByVal strFileName as String) as (return type) End Class --- End Code Snip --- ... so this is used to add a reference to the function in the API that would allow me to decode (as I don'...