search for: speex_preprocess_set_agc

Displaying 20 results from an estimated 24 matches for "speex_preprocess_set_agc".

2004 Aug 06
5
Memory leak in denoiser + a few questions
...of the preprocess.c file (alloced in line 167). It's in Speex 1.1.4 by the way. I'm trying to make the denoiser work with my application and has got reasonable noise reduction after applying the denoiser. I, however, haven't been able to find any information of what the purpose of SPEEX_PREPROCESS_SET_AGC and SPEEX_PREPROCESS_SET_AGC_LEVEL is? Kind regards Bjoern D. Rasmussen www.bearware.dk _________________________________________________________________ Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg pro...
2005 Oct 11
1
noise when passing trougth speex_preprocess
...#define NN 160 /* 20msec di audio */ #define AUDIO_SAMPLERATE 8000 spx_int16_t TEMP_Buffer[NN]; speex_pp_state = speex_preprocess_state_init(NN,AUDIO_SAMPLERATE); c = denoise; speex_preprocess_ctl(speex_pp_state, SPEEX_PREPROCESS_SET_DENOISE,&c); c = agc; speex_preprocess_ctl(speex_pp_state, SPEEX_PREPROCESS_SET_AGC, &c); if(agc) { float t; t = agc_level * 3276; speex_preprocess_ctl(speex_pp_state,SPEEX_PREPROCESS_SET_AGC_LEVEL,&t); } c = vox; speex_preprocess_ctl(speex_pp_state, SPEEX_PREPROCESS_SET_VAD, &c); [LOOP] /* Convert from 8 bit unsigned to 16 bit signed */ TEMP_Buffer[tbc] =...
2007 Jan 08
1
VAD in preprocessor
...s; preprocess = speex_preprocess_state_init(frame_size, sampling_rate); /* frame_size = 160 */ speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_DENOISE, &param_enabled); speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_VAD, &param_enabled); speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_AGC, &param_disabled); /* inputAdd is address of captured input voice (short *). is_speech_in_preprocessor = speex_preprocess(preprocess, inputAdd, null); if (is_speech_in_preprocessor != 0) { speex_encode_int(enc_state, inputAdd, bitsAdd); } Thanks a lot in advance, Sincerel...
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 1 and 0 is more logical, it contradicts the documentation. -- Greger Burman -------------- next part -------------- An HTML...
2010 Jun 28
1
ACE does not work for me at all.
...TE, &_sample_rate); _den_state = speex_preprocess_state_init(_encframe_size, _sample_rate); speex_preprocess_ctl(_den_state, SPEEX_PREPROCESS_SET_ECHO_STATE, _eco_state); tmp=1; speex_preprocess_ctl(_den_state, SPEEX_PREPROCESS_SET_DENOISE, &tmp); tmp=1; speex_preprocess_ctl(_den_state, SPEEX_PREPROCESS_SET_AGC, &tmp); ftmp=24000; // actually default is 8000(0,32768),here make it louder for voice is not loudy enough by default. 8000 speex_preprocess_ctl(_den_state, SPEEX_PREPROCESS_SET_AGC_LEVEL, &ftmp); tmp=1; speex_preprocess_ctl(_den_state, SPEEX_PREPROCESS_SET_VAD, &tmp); and following...
2008 Dec 11
1
preprocessor VAD only rocognize between silence and not silence
...ame_size, samplingrate); int denoise = 1; speex_preprocess_ctl(pre_state, SPEEX_PREPROCESS_SET_DENOISE, &denoise); int pvad = 1; speex_preprocess_ctl(pre_state, SPEEX_PREPROCESS_SET_VAD, &pvad); int agc = 1; speex_preprocess_ctl(pre_state, SPEEX_PREPROCESS_SET_AGC, &agc); inicializado = true; } __try { tdestino = 0; int frame_size; speex_encoder_ctl(enc_state, SPEEX_GET_FRAME_SIZE, &frame_size); int nbloques_sample = this->torigen/frame_size/2; speex_bits_reset(bits); int voces =...
2005 Sep 22
1
Noise :-(
...x_pp_state = speex_preprocess_state_init(NN,AUDIO_SAMPLERATE); } /* Modifica i parametri di Speex */ c = Modem->denoise; speex_preprocess_ctl(Modem->speex_pp_state, SPEEX_PREPROCESS_SET_DENOISE, &c); c = Modem->agc; speex_preprocess_ctl(Modem->speex_pp_state, SPEEX_PREPROCESS_SET_AGC, &c); if(Modem->agc) { float t; t = Modem->agc_level * 3276; speex_preprocess_ctl(Modem->speex_pp_state, SPEEX_PREPROCESS_SET_AGC_LEVEL, &t); } c = Modem->vox; speex_preprocess_ctl(Modem->speex_pp_state, SPEEX_PREPROCESS_SET_VAD, &c); /* vai */...
2007 Dec 06
2
Some question about speexcodex 1.2 beta2 on linux
...ITRATE,&m_bitrate); // speex_encoder_ctl(state, SPEEX_SET_QUALITY, &tmp); m_preProcesser = speex_preprocess_state_init(m_frame_size, 8000); speex_preprocess_ctl(m_preProcesser, SPEEX_PREPROCESS_SET_DENOISE, &m_iDenoise); speex_preprocess_ctl(m_preProcesser, SPEEX_PREPROCESS_SET_AGC, &m_iAGC); fin = fopen("test.pcm", "r+b"); fout = fopen("out.spx", "w+b"); if (fin == NULL || fout == NULL){ printf("FILE open error!!\n"); return 1; } while(1){...
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, -----
2009 Jan 19
2
error
...error: ?SPEEX_PREPROCESS_SET_VAD? undeclared (first use in this function) msconf.c:95: error: ?Channel? has no member named ?speex_pp? msconf.c:95: error: ?SPEEX_PREPROCESS_SET_AGC? undeclared (first use in this function) msconf.c:97: error: ?Channel? has no member named ?speex_pp? msconf.c:97: error: ?SPEEX_PREPROCESS_SET_AGC_LEVEL?...
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
2004 Aug 06
0
Memory leak in denoiser + a few questions
...e (alloced in line 167). It's in Speex >1.1.4 by the way. > >I'm trying to make the denoiser work with my application and has got >reasonable noise reduction after applying the denoiser. I, however, >haven't been able to find any information of what the purpose of >SPEEX_PREPROCESS_SET_AGC and SPEEX_PREPROCESS_SET_AGC_LEVEL is? > >Kind regards > >Bjoern D. Rasmussen >www.bearware.dk > >_________________________________________________________________ >Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk > >--- >8 ---- >List arch...
2006 Dec 29
0
VAD in preprocessor
...s; preprocess = speex_preprocess_state_init(frame_size, sampling_rate); /* frame_size = 160 */ speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_DENOISE, &param_enabled); speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_VAD, &param_enabled); speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_AGC, &param_disabled); /* inputAdd is address of captured input voice (short *). is_speech_in_preprocessor = speex_preprocess(preprocess, inputAdd, null); if (is_speech_in_preprocessor != 0) { speex_encode_int(enc_state, inputAdd, bitsAdd); } VAD in preprocessor is very good, the...
2009 Feb 13
0
Why speex echo cancellation is not work
...MPLERATE; this->den = speex_preprocess_state_init(SPEEX_NN, SPEEX_SAMPLERATE); speex_echo_ctl(st, SPEEX_ECHO_SET_SAMPLING_RATE, &tmp); speex_preprocess_ctl(den, SPEEX_PREPROCESS_SET_ECHO_SUPPRESS_ACTIVE, st); //int tmp1 = 1; //speex_preprocess_ctl(den, SPEEX_PREPROCESS_SET_AGC, &tmp1); } //FILE *echo_fd, *ref_fd, *e_fd; short echo_buf[SPEEX_NN], ref_buf[SPEEX_NN], e_buf[SPEEX_NN]; SpeexEchoState *st; SpeexPreprocessState *den; char* inputBuf; ~AECHandler(void){ speex_echo_state_destroy(this->st); speex_preprocess_sta...
2010 Apr 20
0
Regarding problem with encoding / decoding
...X_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(preprocess_state,SPEEX_PREPROCESS_SET_AGC,&agc); speex_preprocess_run(preprocess_state,data); Please help me. Thanks and Regards, Vijender Reddy, Sci/Engr-SC, Advaced Data processing Research Institute, #203,Akber Road,Manovikas nagar, Secunderabad-500009,A.P.,India. Ph. no: (040) 27781232
2011 Aug 31
0
How can I use preprocessor standalone with a wav file?
...perror(inFile); exit(1); } close_in=1; fout = fopen(outFile, "wb"); if (!fout) { perror(outFile); if (close_in == 1) fclose(fin); exit(1); } st = speex_preprocess_state_init(NN, 22050); i=1; speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_AGC, &i); //enabling AGC; denoise is enabled by default i=8000; speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_AGC_LEVEL, &i); while (1) { int vad; fread(in, sizeof(short), NN, fin); if (feof(fin)) break; vad = speex_preprocess_run(st, in);...
2010 Feb 22
0
Speex echo cancellation and denoise issues
...g without any problem? 3. For AGC: //To initialize speex preprocess state and set the AGC option int nEnable = 1; SpxPreprocessState = speex_preprocess_state_init(160, 8000); //20ms audio at 8000 bps speex_preprocess_ctl(g_pSpxPreprocessState, SPEEX_PREPROCESS_SET_AGC, &nEnable); On enabling AGC I get the below warning. Warning: Unknown speex_preprocess_ctl request: 2 Is AGC not supported? Thanks & Regards Gurinder _____________________________________________________________________ This e-mail message may contain proprietary, confi...
2008 Dec 15
0
preprocessor VAD only rocognize between silence andnot silence
...EEX_PREPROCESS_SET_DENOISE, >>> &denoise); >>> >>> int pvad = 1; >>> speex_preprocess_ctl(pre_state, SPEEX_PREPROCESS_SET_VAD, >&pvad); >>> >>> int agc = 1; >>> speex_preprocess_ctl(pre_state, SPEEX_PREPROCESS_SET_AGC, >&agc); >>> >>> inicializado = true; >>> } >>> >>> __try { >>> tdestino = 0; >>> int frame_size; >>> speex_encoder_ctl(enc_state, SPEEX_GET_FRAME_SIZE, >&frame_size); >&...
2010 Jul 20
0
[SPAM] [BombData][alltestmode] Re: Speex Echo Cancellation
...ss_state, SPEEX_PREPROCESS_SET_ECHO_SUPPRESS, &value); speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_ECHO_SUPPRESS_ACTIVE, &value); speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_DENOISE, &value); value=0; speex_preprocess_ctl(preprocess_state, SPEEX_PREPROCESS_SET_AGC, &value); }*/ } else if (speex_mode == SPEEX_MODE_DECODE) { const SpeexMode * mode = speex_lib_get_mode (SPEEX_MODEID_WB); dec_state = speex_decoder_init(mode); speex_decoder_ctl(dec_state, SPEEX_SET_SAMPLING_RATE, &hz); int enh = 1; // enable perceptual enhancer speex...
2007 Aug 24
0
speex DTX chore
...); if (denoise || agc || vad) { preprocess = speex_preprocess_state_init(frame_size, fs); // Set VAD speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_VAD, &vad); speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_DENOISE, &denoise); speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_AGC, &agc); lookahead += frame_size; } }; //eof Constructor()======================================================== // // ======== Destructor ======== // // FUNCTION: destroys speex coder and decoder // SpeexEncoder :: ~SpeexEncoder() { speex_bits_destroy(&bits); speex_encoder_...