Refactor AudioTfl class to accept the number of detection threads as a parameter in the constructor, and update the usage of the num_threads attribute accordingly (#7588)

This commit is contained in:
Sergey Krashevich
2023-09-01 15:00:11 +03:00
committed by GitHub
parent 7c629c1874
commit 731743c7e5
3 changed files with 9 additions and 7 deletions

View File

@@ -444,6 +444,7 @@ class AudioConfig(FrigateBaseModel):
enabled_in_config: Optional[bool] = Field(
title="Keep track of original state of audio detection."
)
num_threads: int = Field(default=2, title="Number of detection threads", ge=1)
class BirdseyeModeEnum(str, Enum):