search for: vad_enabled

Displaying 13 results from an estimated 13 matches for "vad_enabled".

2011 Aug 29
3
Speex VAD always returning 1
From 1.2rc1 source code: preprocess.c: /* FIXME: This VAD is a kludge */ st->speech_prob = Pframe; if (st->vad_enabled) { if (st->speech_prob > st->speech_prob_start || (st->was_speech && st->speech_prob > st->speech_prob_continue)) { st->was_speech=1; return 1; } else { st->was_speech=0; return 0; } } else { return 1; } AND case SPEEX_PREPROCESS_SET_VAD: speex_warning("Th...
2005 Mar 08
1
VAD with speex_preprocess()
speex_preprocess() isn't covered in the manual, is it? But, it's very easy to use. If it returns non-zero, voice was detected. Tom "Meir Yeshurun" <mt_yeshurun@hotmail.com> wrote: > > I would like to use speex_preprocess() for voice activity detection. I read > the comments in speex_preprocess.h and the relevant paragraphs in the Speex > manual. Is there
2005 Mar 08
0
VAD with speex_preprocess()
...is to destroy/recreate the preprocess state. Tom "Paul Gryting" <paul.gryting@teligy.com> wrote: > > In speexenc.c, speex_preprocess() is not called unless AGC or denoise is > enabled. > If only VAD is enabled, it does not get called. > > speex_preprocess() has vad_enabled specific code to detect voice activity. > speex_preprocess() > { > ... > ... > if (st->vad_enabled) > is_speech = speex_compute_vad(st, ps, mean_prior, mean_post); > > ... > ... > return is_speech; > } > > Some questions for the...
2010 Jun 07
0
No subject
preprocess.c: /* FIXME: This VAD is a kludge */ st->speech_prob =3D Pframe; if (st->vad_enabled) { if (st->speech_prob > st->speech_prob_start || (st->was_speech && st->speec= h_prob > st->speech_prob_continue)) { st->was_speech=3D1; return 1; } else { st->was_speech=3D0; return 0; } } else { return 1; } AND case SPEEX_PREPROCESS_SET_VAD: speex_warning(&qu...
2010 Jun 07
0
No subject
preprocess.c: /* FIXME: This VAD is a kludge */ st->speech_prob =3D Pframe; if (st->vad_enabled) { if (st->speech_prob > st->speech_prob_start || (st->was_speech && st->speec= h_prob > st->speech_prob_continue)) { st->was_speech=3D1; return 1; } else { st->was_speech=3D0; return 0; } } else { return 1; } AND case SPEEX_PREPROCESS_SET_VAD: speex_warning(&qu...
2011 Aug 29
0
Speex VAD always returning 1
...: ken at alanta.com Blog: http://blog.wouldbetheologian.com/ On Mon, Aug 29, 2011 at 1:36 PM, Yanick Bourbeau <ybourbeau at mrgtech.ca>wrote: > From 1.2rc1 source code: > > preprocess.c: > > /* FIXME: This VAD is a kludge */ > st->speech_prob = Pframe; > if (st->vad_enabled) > { > if (st->speech_prob > st->speech_prob_start || (st->was_speech && > st->speech_prob > st->speech_prob_continue)) > { > st->was_speech=1; > return 1; > } else > { > st->was_speech=0; > return 0; > } > } else { > return...
2011 Aug 29
2
Speex VAD always returning 1
I have been trying to understand how to get the VAD algorithm working. I sent an input stream of all zeros into the preprocessor but still got a return value of 1 indicating that speech was detected. Is this feature not available with the latest release? I thought at the very least it would detect this as silence and return 0 but that does not seem to be the case. Does anyone have any
2004 Aug 06
2
Memory leak in denoiser + a few questions
On Mar 28, 2004, at 8:23 PM, Jean-Marc Valin wrote: >> The st->zeta pointer isn't freed in the >> speex_preprocess_state_destroy() >> function of the preprocess.c file (alloced in line 167). It's in >> Speex 1.1.4 >> by the way. > > Oops... Thanks for letting me know. I'll change that for the next > release (in the mean time, the fix is
2004 Aug 06
4
Memory leak in denoiser + a few questions
...=========== RCS file: /home/UniServ/dls/CVS/hms/app_conference/libspeex/preprocess.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- preprocess.c 2003/11/07 23:40:23 1.2 +++ preprocess.c 2004/02/06 17:10:24 1.3 @@ -145,6 +145,9 @@ st->agc_level = 8000; st->vad_enabled = 0; + st->speech_prob_start = SPEEX_PROB_START ; + st->speech_prob_continue = SPEEX_PROB_CONTINUE ; + st->frame = (float*)speex_alloc(2*N*sizeof(float)); st->ps = (float*)speex_alloc(N*sizeof(float)); st->gain2 = (float*)speex_alloc(N*sizeof(float)); @@ -435,12...
2004 Aug 06
0
Kindly help me with VAD activation
...t all. However, the VAD done by speex_preprocess() works much 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...
2006 Dec 01
3
A case indicating VAD bug
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: output.wav Type: audio/x-wav Size: 259244 bytes Desc: not available Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20061127/546b3a06/output-0001.wav -------------- next part -------------- A non-text attachment was scrubbed... Name: input.inp Type:
2008 Feb 12
0
Second part of data export patch
.../**< Processing frame (2*ps_size) */ spx_word16_t *ft; /**< Processing frame in freq domain (2*ps_size) */ @@ -994,9 +996,10 @@ st->outbuf[i] = st->frame[st->frame_size+i]; /* FIXME: This VAD is a kludge */ + st->speech_prob = Pframe; if (st->vad_enabled) { - if (Pframe > st->speech_prob_start || (st->was_speech && Pframe > st->speech_prob_continue)) + if (st->speech_prob > st->speech_prob_start || (st->was_speech && st->speech_prob > st->speech_prob_continue)) { st-...
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...sizeof(spx_mem_t)); st->pi_gain = speex_alloc((st->nbSubframes)*sizeof(spx_word32_t)); st->pitch = speex_alloc((st->nbSubframes)*sizeof(int)); st->vbr = speex_alloc(sizeof(VBRState)); vbr_init(st->vbr); st->vbr_quality = 8; st->vbr_enabled = 0; st->vad_enabled = 0; st->dtx_enabled = 0; st->abr_enabled = 0; st->abr_drift = 0; st->plc_tuning = 2; st->complexity=2; st->sampling_rate=8000; st->dtx_count=0; #ifdef ENABLE_VALGRIND VALGRIND_MAKE_READABLE(st, (st->stack-(char*)st)); #endif return st; } void n...