Mute microphone during awake wav

This commit is contained in:
Michael Hansen
2024-01-16 17:06:30 -06:00
parent ebc686d9ad
commit 73604f9a71
6 changed files with 78 additions and 34 deletions
+6
View File
@@ -49,6 +49,12 @@ class MicSettings(ServiceSettings):
samples_per_chunk: int = 1024
"""Samples to read at a time from mic command"""
mute_during_awake_wav: bool = True
"""True if microphone audio should be muted while the awake WAV is playing."""
seconds_to_mute_after_awake_wav: float = 0.5
"""Extra second(s) of microphone audio to mute after awake WAV has finished playing."""
@property
def needs_webrtc(self) -> bool:
"""True if webrtc audio enhancements are needed."""