FS-9447: [mod_avmd] increase default value of samples to skip

Increase value of samples to skip at the beginning of new frame.
This increases the robustness against false detections observed
on German voicemail from Switzerland (see wav audio attached
to case FS-9447).
This commit is contained in:
Piotr Gregor 2016-08-19 19:41:19 +01:00
parent 7b9184e94f
commit fb065a148a
1 changed files with 11 additions and 6 deletions

View File

@ -8,12 +8,14 @@
<!-- Global settings --> <!-- Global settings -->
<!-- define/undefine this to enable/disable printing of avmd <!-- define/undefine this to enable/disable logging of avmd
intermediate computations to log --> intermediate computations to log -->
<param name="debug" value="0"/> <param name="debug" value="0"/>
<!-- define/undef this to enable/disable reporting of beep <!-- define/undef this to enable/disable verbose logging (and reporting to the console)
detection status after session ended --> of detection status and other diagnostics like parameters avmd session has been started with,
change of configuration parameters, beep detection status after session ended
(stop event is fired independently of this setting and beep status included there) -->
<param name="report_status" value="1"/> <param name="report_status" value="1"/>
<!-- define/undefine this to enable/disable faster computation <!-- define/undefine this to enable/disable faster computation
@ -33,12 +35,15 @@
<param name="require_continuous_streak" value="1"/> <param name="require_continuous_streak" value="1"/>
<!-- required number of consecutive elements in the SMA buffer <!-- required number of consecutive elements in the SMA buffer
without reset --> without reset. This parameter helps to avoid false beeps, bigger this value is
smaller the probability of getting false detection -->
<param name="sample_n_continuous_streak" value="15"/> <param name="sample_n_continuous_streak" value="15"/>
<!-- define number of samples to skip starting from the beginning <!-- define number of samples to skip starting from the beginning
of the frame and after reset --> of the frame and/or after reset has happened. This serves the purpose of skipping first few
<param name="sample_n_to_skip" value="6"/> estimations on each frame, as these estimations may be inaccurate. This parameter also helps
to give more robust detections when it's value is increased (up to scertain limit of about 60). -->
<param name="sample_n_to_skip" value="15"/>
<!-- define/undefine this to enable/disable simplified estimation <!-- define/undefine this to enable/disable simplified estimation
of frequency based on approximation of sin(x) with (x) of frequency based on approximation of sin(x) with (x)