Save audio scores and add audio filter config (#7185)

* Send and save score for external events

* Add audio filters config

* Fix access

* Add docs

* Cleanup
This commit is contained in:
Nicolas Mowen
2023-07-17 05:07:15 -06:00
committed by GitHub
parent dacf45cd88
commit c5b8d13beb
7 changed files with 39 additions and 5 deletions

View File

@@ -31,6 +31,7 @@ class ExternalEventProcessor:
label: str,
source_type: str,
sub_label: Optional[str],
score: int,
duration: Optional[int],
include_recording: bool,
draw: dict[str, any],
@@ -56,6 +57,7 @@ class ExternalEventProcessor:
"id": event_id,
"label": label,
"sub_label": sub_label,
"score": score,
"camera": camera,
"start_time": now - camera_config.record.events.pre_capture,
"end_time": now