search for: encoderst

Displaying 8 results from an estimated 8 matches for "encoderst".

Did you mean: encoders
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?)
...ith single input buffer, which example is give above; so it's same for all input buffers): int writtenBytesNumber; SpeexBits bits; int samplesPerFrame; int quality = 6; char compressedBits[200]; speex_bits_init(&bits); memset(compressedBits, 0, 200); void *encoderState = speex_encoder_init(&speex_wb_mode); // setting wideband mode speex_encoder_ctl(encoderState, SPEEX_GET_FRAME_SIZE, &samplesPerFrame); // 320 samples/frame speex_encoder_ctl(encoderState, SPEEX_SET_QUALITY, &quality); CMItemCount numberOfSamples = CMSampleBufferGetNumS...
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?).
...ith single input buffer, which example is give above; so it's same for all input buffers): int writtenBytesNumber; SpeexBits bits; int samplesPerFrame; int quality = 6; char compressedBits[200]; speex_bits_init(&bits); memset(compressedBits, 0, 200); void *encoderState = speex_encoder_init(&speex_wb_mode); // setting wideband mode speex_encoder_ctl(encoderState, SPEEX_GET_FRAME_SIZE, &samplesPerFrame); // 320 samples/frame speex_encoder_ctl(encoderState, SPEEX_SET_QUALITY, &quality); CMItemCount numberOfSamples = CMSampleBufferGetN...
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?).
...ith single input buffer, which example is give above; so it's same for all input buffers): int writtenBytesNumber; SpeexBits bits; int samplesPerFrame; int quality = 6; char compressedBits[200]; speex_bits_init(&bits); memset(compressedBits, 0, 200); void *encoderState = speex_encoder_init(&speex_wb_mode); // setting wideband mode speex_encoder_ctl(encoderState, SPEEX_GET_FRAME_SIZE, &samplesPerFrame); // 320 samples/frame speex_encoder_ctl(encoderState, SPEEX_SET_QUALITY, &quality); CMItemCount numberOfSamples = CMSampleBufferGetNumS...
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?)
...ith single input buffer, which example is give above; so it's same for all input buffers): int writtenBytesNumber; SpeexBits bits; int samplesPerFrame; int quality = 6; char compressedBits[200]; speex_bits_init(&bits); memset(compressedBits, 0, 200); void *encoderState = speex_encoder_init(&speex_wb_mode); // setting wideband mode speex_encoder_ctl(encoderState, SPEEX_GET_FRAME_SIZE, &samplesPerFrame); // 320 samples/frame speex_encoder_ctl(encoderState, SPEEX_SET_QUALITY, &quality); CMItemCount numberOfSamples = CMSampleBufferGetN...
2008 Jul 11
0
Speex issue
...'s some glaring error that you guys will shout at me for missing. This method is called when enough data has accumulated in inputFrame, after the members have been initialized and the headers have been written: oggPacketCount++; speex_bits_reset(&speexBits); speex_encode_int(encoderState, inputFrame, &speexBits); int packetBytes = speex_bits_write(&speexBits, packetBuffer, PACKET_BUFFER_SIZE); oggPacket.packet = (unsigned char*)packetBuffer; oggPacket.bytes = packetBytes; oggPacket.b_o_s = 0; //this is not the beginning of the stream oggPacket.e_o_s...
2010 Feb 28
0
Denoise not working for me
...tate_init(160, 8000); //20ms audio at 8000 bps speex_preprocess_ctl(SpxPreprocessState, SPEEX_PREPROCESS_SET_DENOISE, &nEnable); //Run the preprocess on the buffer captured before encoding speex_preprocess_run(SpxPreprocessState, (short*)pbBuffer); speex_encode_int(EncoderState,(short*)pbBuffer, &stSpeexBits); I dump the output of the buffer after calling speex_preprocess_run and play it using some media player tool but I dont hear any audio as if the complete audio has been removed. Am i following the right steps, is there else i need to do along with the steps...
2010 Jul 25
0
notification: More than two wideband layers found. The stream is corrupted.
...p] = RcvL2[i_loop]; inout_byte[2*i_loop+1] = RcvR2[i_loop]; } } byte2word(inout_byte, in_short, FRAME_SIZE); speex_bits_reset(&bits); returnVal = speex_encode_int(encoderState, (spx_int16_t *) in_short, &bits); nbChars = speex_bits_write(&bits, cbits, sizeof(cbits)*BYTES_PER_CHAR) /BYTES_PER_CHAR; speex_bits_rewind(&bits); speex_bits_read_from(&bits, cbits, TESTENC_BYTES_PER_FRAME); *...
2010 Feb 22
0
Speex echo cancellation and denoise issues
...ate_init(160, 8000); //20ms audio at 8000 bps speex_preprocess_ctl(SpxPreprocessState, SPEEX_PREPROCESS_SET_DENOISE, &nEnable); //Run the preprocess on the buffer captured before encoding speex_preprocess_run(SpxPreprocessState, (short*)pbBuffer); speex_encode_int(EncoderState,(short*)pbBuffer, &stSpeexBits); On calling speex_preprocess_run removes all the audio from the buffer and a constant humming sound is heard. I open the recorded file in Cool edit pro tool and see that all the spikes are removed and flat wave is there. What could...