Skip to content

Commit

Permalink
fix: Fix defaults for privacy and dog bark filters and fix incorrect …
Browse files Browse the repository at this point in the history
…setting names in default config.yaml
  • Loading branch information
tphakala committed Jun 1, 2024
1 parent 44ffb88 commit 264fd4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/conf/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ realtime:

privacyfilter: # Privacy filter prevents audio clip saving if human voice
enabled: true # is detected durin audio capture
threshold: 0.05 # threshold for human voice detection
confidence: 0.05 # threshold for human voice detection

dogbarkfilter:
enabled: true
condidence: 0.1 # confidence threshold for dog bark detection
confidence: 0.1 # confidence threshold for dog bark detection
remember: 5 # number of minutes to remember dog barks

telemetry:
Expand Down
3 changes: 2 additions & 1 deletion internal/conf/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ func setDefaultConfig() {

viper.SetDefault("realtime.privacyfilter.enabled", true)
viper.SetDefault("realtime.privacyfilter.debug", false)
viper.SetDefault("realtime.privacyfilter.threshold", 0.05)
viper.SetDefault("realtime.privacyfilter.confidence", 0.05)

viper.SetDefault("realtime.dogbarkfilter.enabled", false)
viper.SetDefault("realtime.dogbarkfilter.debug", false)
viper.SetDefault("realtime.dogbarkfilter.remember", 5)
viper.SetDefault("realtime.dogbarkfilter.confidence", 0.1)

viper.SetDefault("realtime.telemetry.enabled", false)
viper.SetDefault("realtime.telemetry.listen", "0.0.0.0:8090")
Expand Down

0 comments on commit 264fd4f

Please sign in to comment.