From cb33a80a6843fdc76ef82ee86cf5c90c23060ff3 Mon Sep 17 00:00:00 2001 From: icculus Date: Sun, 8 Jun 2008 07:09:10 +0000 Subject: VoIP: attempt at changing voipPower calc and using it for VAD. The Speex VAD sort of sucks, honestly, or I'm not using it right. Now trying this algorithm, after denoising: http://lists.xiph.org/pipermail/speex-dev/2006-March/004269.html And I'll play around to find the threshold for considering a set of frames to be "voice" from there. Also worth noting: we consider the power of the set of frames as a whole, so you need to sustain power for 0.25 seconds at a time, or it's not "voice." git-svn-id: svn://svn.icculus.org/quake3/trunk@1377 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/client/cl_cgame.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'code/client/cl_cgame.c') diff --git a/code/client/cl_cgame.c b/code/client/cl_cgame.c index d0624c9..18a9630 100644 --- a/code/client/cl_cgame.c +++ b/code/client/cl_cgame.c @@ -937,10 +937,6 @@ void CL_FirstSnapshot( void ) { speex_preprocess_ctl(clc.speexPreprocessor, SPEEX_PREPROCESS_SET_DENOISE, &i); - i = (cl_voipUseVAD->integer != 0); - speex_preprocess_ctl(clc.speexPreprocessor, - SPEEX_PREPROCESS_SET_VAD, &i); - for (i = 0; i < MAX_CLIENTS; i++) { speex_bits_init(&clc.speexDecoderBits[i]); speex_bits_reset(&clc.speexDecoderBits[i]); -- cgit v1.2.3