avmd.conf.xml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <configuration name="avmd.conf" description="AVMD config">
  2. <settings>
  3. <!-- Edit these settings to change default behaviour
  4. of each avmd session. Settings can be overwritten
  5. by values passed dynamically per each session -->
  6. <!-- Global settings -->
  7. <!-- define/undefine this to enable/disable logging of avmd
  8. intermediate computations to log -->
  9. <param name="debug" value="0"/>
  10. <!-- define/undef this to enable/disable verbose logging (and reporting to the console)
  11. of detection status and other diagnostics like parameters avmd session has been started with,
  12. change of configuration parameters, beep detection status after session ended
  13. (stop event is fired independently of this setting and beep status included there) -->
  14. <param name="report_status" value="1"/>
  15. <!-- define/undefine this to enable/disable faster computation
  16. of arcus cosine - table will be created mapping floats
  17. to integers and returning arc cos values given these integer
  18. indices into table -->
  19. <param name="fast_math" value="0"/>
  20. <!-- Global settings end -->
  21. <!-- Per call (session) settings. These settings can be overwritten
  22. with custom/different values per each avmd session -->
  23. <!-- define/undefine this to classify avmd beep detection as valid
  24. only when there is required number of consecutive elements
  25. in the SMA buffer without reset -->
  26. <param name="require_continuous_streak" value="1"/>
  27. <!-- required number of consecutive elements in the SMA buffer
  28. without reset. This parameter helps to avoid false beeps, bigger this value is
  29. smaller the probability of getting false detection -->
  30. <param name="sample_n_continuous_streak" value="3"/>
  31. <!-- define number of samples to skip starting from the beginning
  32. of the frame and/or after reset has happened. This serves the purpose of skipping first few
  33. estimations on each frame, as these estimations may be inaccurate. This parameter also helps
  34. to give more robust detections when it's value is increased (up to scertain limit of about 60). -->
  35. <param name="sample_n_to_skip" value="0"/>
  36. <param name="require_continuous_streak_amp" value="1"/>
  37. <param name="sample_n_continuous_streak_amp" value="3"/>
  38. <!-- define/undefine this to enable/disable simplified estimation
  39. of frequency based on approximation of sin(x) with (x)
  40. in the range x=[0,PI/2] -->
  41. <param name="simplified_estimation" value="1"/>
  42. <!-- define/undefine to enable/disable avmd on internal channel -->
  43. <param name="inbound_channel" value="0"/>
  44. <!-- define/undefine to enable/disable avmd on external channel -->
  45. <param name="outbound_channel" value="1"/>
  46. <!-- determines the mode of detection, default is both amplitude and frequency -->
  47. <param name="detection_mode" value="2"/>
  48. <!-- number of detection threads running per each avmd session -->
  49. <param name="detectors_n" value="36"/>
  50. <!-- number of lagged detection threads running per each avmd session -->
  51. <param name="detectors_lagged_n" value="1"/>
  52. <!-- Per call settings end -->
  53. </settings>
  54. </configuration>