mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 22:38:38 +00:00
FS-9542 [avmd]: multithreaded
Now avmd detection is done in detector threads processing audio frames with different resolution and/or offsets. Detection decision is based on relative standard deviation which dynamically adjusts to the signal. Detection of amplitude, frequency and both simultaneously is enabled and corresponding setting added to the configuration. Frequency estimates are filtered with median filter. This commit also resolves: FS-9539 - Get estimates with different resolution FS-9513 - Use adjustable thresholds FS-9502 - Add detection mode setting FS-9501 - Enable three modes of detection FS-9407 - Add check of amplitude for NaN before appending to SMA buffer FS-9139 - Unit test framework
This commit is contained in:
1 parent
2b1f0da5c4
commit
8e189ed233
11 files changed
+1977
-698
No files matched your search
@@ -37,13 +37,16 @@
|
||||
<!-- required number of consecutive elements in the SMA buffer
|
||||
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="5"/>
|
||||
|
||||
<!-- define number of samples to skip starting from the beginning
|
||||
of the frame and/or after reset has happened. This serves the purpose of skipping first few
|
||||
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"/>
|
||||
<param name="sample_n_to_skip" value="0"/>
|
||||
|
||||
<param name="require_continuous_streak_amp" value="1"/>
|
||||
<param name="sample_n_continuous_streak_amp" value="5"/>
|
||||
|
||||
<!-- define/undefine this to enable/disable simplified estimation
|
||||
of frequency based on approximation of sin(x) with (x)
|
||||
@@ -55,6 +58,10 @@
|
||||
|
||||
<!-- define/undefine to enable/disable avmd on external channel -->
|
||||
<param name="outbound_channel" value="1"/>
|
||||
|
||||
<!-- determines the mode of detection, default is both amplitude and frequency -->
|
||||
<param name="detection_mode" value="2"/>
|
||||
|
||||
<!-- Per call settings end -->
|
||||
</settings>
|
||||
</configuration>
|
||||
|
||||
Reference in new issue
Block a user