search for: preprocess_st

Displaying 12 results from an estimated 12 matches for "preprocess_st".

Did you mean: preprocess_ip
2008 Feb 15
3
Voice activity detection
This must be a simple issue, but I cannot figure it out. I want to use VAD, but I don't know how to check if the actual frame has voice in it or not. So, in my code, I do: int tmp = 1; speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_VAD, &tmp); speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_DENOISE, &tmp); then later, for each frame speex_preprocess_run(preprocess_state, shortPointer); but how do I know if the frame contained voice? I tried if (preprocess_state->was_voice =...
2008 Feb 17
1
Voice activity detection
Thanks for your reply. I changed my code to: if (speex_preprocess_run(preprocess_state, shortPointer) == 1) { speex_encode_int(enc_state, shortPointer, &enc_bits); } In the mobile version of the software, compiled against the mobile build of Speech, I get 1 and 0 based on whether the speech is detected. In the version of the software compiled against the Win32 version of Spe...
2010 Jul 20
2
[SPAM] [BombData][alltestmode] Re: Speex Echo Cancellation
As for me - speex_echo_cancellation is a better choise. Try using it in capture thread instead of those speex_echo_capture and speex_echo_playback functions. And please, describe your problem in details. Cause the fact that you "didn get echo cancellation" doesn't mean you are doing smth wrong. Regards, Anton A. Shpakovsky -----Original Message----- From: speex-dev-bounces at
2010 Apr 05
2
Regarding problem with encoding / decoding
Hi, Tank you for your reply. I have tried the sample programs given the manual and done encoding and decoding a wave file. That is working fine. I have already read the manual and API reference. But this problem did not occured with the wave file encoding/decoding. While capturing the data from MIC and encoding/decoding is giving this problem. Thanks and Regards, Vijender Reddy, -----
2010 Jul 20
0
[SPAM] [BombData][alltestmode] Re: Speex Echo Cancellation
...mp;hz); int quality= 8; speex_encoder_ctl(enc_state,SPEEX_SET_QUALITY,&quality); quality = 2; speex_encoder_ctl(enc_state, SPEEX_SET_COMPLEXITY, &quality); echo_state = speex_echo_state_init(20,320*10); speex_echo_ctl(echo_state,SPEEX_ECHO_SET_SAMPLING_RATE,&hz); preprocess_state = speex_preprocess_state_init(20 /*frame size in ms*/, hz); speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_ECHO_STATE,echo_state); /* int value = -226; if (preprocess_state != NULL) { speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_ECHO_SUPPRESS, &...
2010 Jul 20
1
[BombData][alltestmode] Re: [SPAM] [BombData][alltestmode] Re: Speex EchoCancellation
...mp;hz); int quality= 8; speex_encoder_ctl(enc_state,SPEEX_SET_QUALITY,&quality); quality = 2; speex_encoder_ctl(enc_state, SPEEX_SET_COMPLEXITY, &quality); echo_state = speex_echo_state_init(20,320*10); speex_echo_ctl(echo_state,SPEEX_ECHO_SET_SAMPLING_RATE,&hz); preprocess_state = speex_preprocess_state_init(20 /*frame size in ms*/, hz); speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_ECHO_STATE,echo_state); /* int value = -226; if (preprocess_state != NULL) { speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_ECHO_SUPPRESS, &...
2008 Jan 07
2
Problem related to Voice activity detection
...detect voice activity in voice stream and then record only portion of this stream which contains the activity. i went through these steps. 1. Captured voice through Waveform Functions of Windows Multimedia API 2. Started Speex Preprocessing liberary 3. Turned on preprocessor by calling speex_preprocess_state_init and passing it 20 ms frame size and sampling rate 4. Set VAD on 5. Copied byte data into __int16 variables and passed it to speex_preprocess_run function. in return of these steps i got wrong date back to me. could you please send me the sample code or could you identify the proble...
2010 Apr 20
0
Regarding problem with encoding / decoding
...ll noise. I am hearing voice with very low sound, noise is dominating the speech. I didn't talk also i am hearing lot of noise from speakers after decoding. I used following preprocess functions also but no use. int noise_sup=2; // from 2 to 40 and -ve numbers also no use speex_preprocess_ctl(preprocess_state,SPEEX_PREPROCESS_SET_NOISE_SUPPRESS, &noise_sup); int noise= 1; speex_preprocess_ctl(preprocess_state,SPEEX_PREPROCESS_SET_NOISE_SUPPRESS, &noise); int denoise=1; speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_DENOISE, &denoise); int agc=1; speex_preprocess_ctl(preproces...
2012 Dec 25
0
Problem in using SpeexPreprocess
...e-process noisy speech using SpeexPreprocess api. Code listing is the following: --------------------------------------- #include <stdio.h> #include <speex/speex_preprocess.h> #define FRAME_SIZE 160 #define SAMPLING_RATE 8000 int main(int argc, char **argv) { SpeexPreprocessState *preprocess_state = speex_preprocess_state_init(FRAME_SIZE, SAMPLING_RATE); FILE *fin = fopen(argv[1], "r"); FILE *fout = fopen(argv[2], "wb"); short in[FRAME_SIZE]; //float input[FRAME_SIZE]; char cbits[200]; int nbBytes; while (1) { fread(in, sizeof(sho...
2009 May 29
1
speex documentation
I believe there is a documentation error regarding speex_preprocess_ctl(preprocess_state, request, ptr); The manual states: SPEEX_PREPROCESS_SET_DENOISE Turns denoising on(1) or off(2) SPEEX_PREPROCESS_SET_AGC Turns automatic gain control (AGC) on(1) or off(2) I noticed that setting a value of 0 turns the setting off. Setting a value of 1 or 2 turns the setting on. While I do think...
2006 Jan 31
0
About echo cancelling
.... <<<<---- no problem??? I show you again my code about "echo cancel". // Initialize echo-canceller echo_state = speex_echo_state_init(framesize, framesize*16/*filterLength*/); speex_echo_cancel(echo_state, input_data, decoded_data, echo_canceled_data, residue); Preprocess(preprocess_state, echo_canceled_data, residue); -----Original Message----- From: Jean-Marc Valin [mailto:Jean-Marc.Valin@USherbrooke.ca] Sent: Tuesday, January 31, 2006 7:35 AM To: ??? Cc: speex-dev@xiph.org Subject: Re: [Speex-dev] About echo cancelling Try first without AGC or anything like that. Jean-M...
2008 Jul 25
2
Problem in Echocancelation
Hi, We are using your speex codec in our VirtuvalClassRoom product. It's working good but we have problem using your echo canceller. Can you send me some code samples which use the echo cancelation? thanks suresh A Bring your gang together. Do your thing. Find your favourite Yahoo! group at http://in.promos.yahoo.com/groups/ -------------- next part -------------- An HTML