-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig
61 lines (57 loc) · 2.22 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[general]
# microphone
microphone = Built-in Microphone
# Recalibrate after this many minutes has passed
recalibration_rate = 10000
# Store events into DB whenever this many dog events occur. No reason to set this lower than 100
max_buffer_size = 100
[respond]
# Should the owner praise?
praise = 0
# The timeframe when considering if to praise (minutes)
praise_response_window = 2
# The max number of events that should be within timeframe to consider praising
praise_max_events = 20
# The maximum pressure sum of any individual event in the timeframe to consider praising
praise_max_pressure_sum = 0.01
# After praising, wait this many minutes to consider praising again.
praise_cooldown = 5
# Should the owner scold?
scold = 0
# The timeframe when considering if to scold (minutes)
scold_response_window = 1.0
# The pressure sum of the event required to trigger scolding
scold_trigger = 0.25
# The number of door scratches in window to trigger scolding
scold_scratch_door_count = 8
# The number of barks in window to consider scolding
scold_bark_count = 10
# The last N events that should be barks to consider scolding
scold_consec_bark_count = 3
# After scolding, wait this many minutes to consider scolding again.
scold_cooldown = 2
# Warning has not been implemented. These do nothing
warn = 0
warn_response_window = 0.25
warn_cooldown = 1
[calibration]
# The length of the audio in seconds that is used to calibrate
calibration_time = 2
# background std and mean. Increase to make event start and end thresholds less sensitive
background_std_preset = 0.0003
background_mean_preset = 0.0010
[detector]
# Standard deviations above background noise to consider start an event
event_start_threshold = 4
# The number of chunks in a row that must exceed event_start_threshold in order to start an event
num_consecutive = 4
# Standard deviations above background noise to end an event
event_end_threshold = 4
# The number of seconds after a chunk dips below event_end_threshold that must pass for the event to
# end. If during this period a chunk exceeds event_start_threshold, the event is sustained
seconds = 0.25
# If an event lasts longer than this many seconds, everything is recalibrated
hang_time = 180
[analysis]
# how many seconds should each bin be
bin_size = 60