Ignore:
Timestamp:
Aug 19, 2008 11:04:32 AM (16 years ago)
Author:
nanang
Message:

Ticket #490: Updated VAD with new algorithm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/silencedet.h

    r2039 r2222  
    11/* $Id$ */ 
    22/*  
    3  * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> 
     3 * Copyright (C) 2003-2007 Benny Prijono <benny@prijono.org> 
    44 * 
    55 * This program is free software; you can redistribute it and/or modify 
     
    109109 * 
    110110 * @param sd                The silence detector 
    111  * @param min_silence       Minimum duration of silence (in msec) before  
     111 * @param before_silence    Minimum duration of silence (in msec) before  
    112112 *                          silence is reported. If -1 is specified, then 
    113113 *                          the default value will be used. The default is 
    114114 *                          400 msec. 
    115  * @param min_signal        Minimum duration of signal (in msec) before 
    116  *                          signal is reported. If -1 is specified, then 
    117  *                          the default value will be used. The default is 
    118  *                          equal to one frame. 
    119  * @param recalc_time       The interval to recalculate signal and silence 
    120  *                          proportion and to readjust the silence threshold 
    121  *                          when adaptive silence detection is set. If -1 
    122  *                          is specified, then the default value will be used. 
    123  *                          The default value is 5000 (msec). 
     115 * @param recalc_time1      The interval (in msec) to recalculate threshold 
     116 *                          in non-silence condition when adaptive silence  
     117 *                          detection is set. If -1 is specified, then the  
     118 *                          default value will be used. The default is 4000 
     119 *                          (msec). 
     120 * @param recalc_time2      The interval (in msec) to recalculate threshold 
     121 *                          in silence condition when adaptive silence detection 
     122 *                          is set. If -1 is specified, then the default value  
     123 *                          will be used. The default value is 2000 (msec). 
    124124 * 
    125125 * @return                  PJ_SUCCESS on success. 
    126126 */ 
    127127PJ_DECL(pj_status_t) pjmedia_silence_det_set_params( pjmedia_silence_det *sd, 
    128                                                      int min_silence, 
    129                                                      int min_signal, 
    130                                                      int recalc_time); 
     128                                                     int before_silence, 
     129                                                     int recalc_time1, 
     130                                                     int recalc_time2); 
     131 
    131132 
    132133/** 
Note: See TracChangeset for help on using the changeset viewer.