search for: floatbuf

Displaying 2 results from an estimated 2 matches for "floatbuf".

2004 Aug 06
2
Speex/Linux/ALSA
...cm_readi has been tried with the number of frames set to 100, 160, 200, 2000. It puts the data read into an unsigned char array. After capturing the data, I copy the unsigned char array into a float array and follow the example code in sampleenc.c speex_bits_reset(&bits); speex_encode(state, floatbuf, &bits); cbytes = speex_bits_write(&bits, comprbuf, BUFSIZE); cbytes always returns 38 no matter what the frames are set to in the ALSA snd_pcm_readi call. I do know that valid sound in the unsigned char array returned from the ALSA snd_pcm_readi call is less than 0x7A, and anything above...
2004 Aug 06
0
Kindly help me with VAD activation
...uch better. You will also get better results if you enable the denoiser, I think. peex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_DENOISE, &denoise_enabled); speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_VAD, &vad_enabled); speechDetected = speex_preprocess(preprocess, floatbuf, NULL); Hope this helps, Tom Abhishek Parakh (abhishekp@ee.iitm.ac.in) wrote: > > Hello. > > I have generated a dll out of speex-1.1.4 using VC++6. I did not want all the > ogg/wave header in the encoded stream. So I have replaced to codes of > speexenc/dec with that of sampl...