Skip to content

Commit

Permalink
feat: use dynamic energy threshold.
Browse files Browse the repository at this point in the history
  • Loading branch information
jws-1 committed Jul 9, 2024
1 parent 95e9c11 commit 7ba0c4c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class speech_model_params:
mic_device: Optional[str] = None
timer_duration: Optional[int] = 20
warmup: bool = True
energy_threshold: Optional[int] = 600
energy_threshold: Optional[int] = None
pause_threshold: Optional[float] = 2.0


Expand Down Expand Up @@ -291,8 +291,8 @@ def parse_args() -> dict:

parser.add_argument(
"--energy_threshold",
type=int,
default=600,
type=Optional[int],
default=None,
help="Energy threshold for silence detection. Using this disables automatic adjustment",
)

Expand Down

0 comments on commit 7ba0c4c

Please sign in to comment.