From 5c4dfab39616ef259653a2a45b4034db13a81854 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Tue, 19 Aug 2008 11:04:32 +0000 Subject: Ticket #490: Updated VAD with new algorithm. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2222 74dad513-b988-da41-8d7b-12977e46ad98 --- pjmedia/include/pjmedia/silencedet.h | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'pjmedia/include') diff --git a/pjmedia/include/pjmedia/silencedet.h b/pjmedia/include/pjmedia/silencedet.h index af6f0e28..5f6a2491 100644 --- a/pjmedia/include/pjmedia/silencedet.h +++ b/pjmedia/include/pjmedia/silencedet.h @@ -1,6 +1,6 @@ /* $Id$ */ /* - * Copyright (C) 2003-2008 Benny Prijono + * Copyright (C) 2003-2007 Benny Prijono * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -108,26 +108,27 @@ PJ_DECL(pj_status_t) pjmedia_silence_det_set_adaptive(pjmedia_silence_det *sd, * Set other silence detector parameters. * * @param sd The silence detector - * @param min_silence Minimum duration of silence (in msec) before + * @param before_silence Minimum duration of silence (in msec) before * silence is reported. If -1 is specified, then * the default value will be used. The default is * 400 msec. - * @param min_signal Minimum duration of signal (in msec) before - * signal is reported. If -1 is specified, then - * the default value will be used. The default is - * equal to one frame. - * @param recalc_time The interval to recalculate signal and silence - * proportion and to readjust the silence threshold - * when adaptive silence detection is set. If -1 - * is specified, then the default value will be used. - * The default value is 5000 (msec). + * @param recalc_time1 The interval (in msec) to recalculate threshold + * in non-silence condition when adaptive silence + * detection is set. If -1 is specified, then the + * default value will be used. The default is 4000 + * (msec). + * @param recalc_time2 The interval (in msec) to recalculate threshold + * in silence condition when adaptive silence detection + * is set. If -1 is specified, then the default value + * will be used. The default value is 2000 (msec). * * @return PJ_SUCCESS on success. */ PJ_DECL(pj_status_t) pjmedia_silence_det_set_params( pjmedia_silence_det *sd, - int min_silence, - int min_signal, - int recalc_time); + int before_silence, + int recalc_time1, + int recalc_time2); + /** * Disable the silence detector. -- cgit v1.2.3