Skip to content

Commit

Permalink
Change to --mic-no-mute-after-awake-wav
Browse files Browse the repository at this point in the history
  • Loading branch information
synesthesiam committed Jan 30, 2024
1 parent 12cce8e commit 8e793a1
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions wyoming_satellite/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,16 @@ async def main() -> None:
)
parser.add_argument("--mic-auto-gain", type=int, default=0, choices=list(range(32)))
parser.add_argument(
"--mic-seconds-to-mute-after-awake-wav",
type=float,
default=0.5,
help="Seconds to mute after awake wav is played")
"--mic-seconds-to-mute-after-awake-wav",
type=float,
default=0.5,
help="Seconds to mute microphone after awake wav is finished playing (default: 0.5)",
)
parser.add_argument(
"--mic-mute-during-awake-wav",
type=bool,
default=True,
help="Determine if mic should be muted while awake wav is played")
"--mic-no-mute-during-awake-wav",
action="store_true",
help="Don't mute the microphone while awake wav is being played",
)

# Sound output
parser.add_argument("--snd-uri", help="URI of Wyoming sound service")
Expand Down Expand Up @@ -316,7 +317,7 @@ async def main() -> None:
auto_gain=args.mic_auto_gain,
noise_suppression=args.mic_noise_suppression,
seconds_to_mute_after_awake_wav=args.mic_seconds_to_mute_after_awake_wav,
mute_during_awake_wav=args.mic_mute_during_awake_wav
mute_during_awake_wav=(not args.mic_no_mute_during_awake_wav),
),
vad=VadSettings(
enabled=args.vad,
Expand Down

0 comments on commit 8e793a1

Please sign in to comment.