Mute microphone during awake wav
This commit is contained in:
@@ -119,12 +119,13 @@ def apply_settings(settings: Settings) -> None:
|
||||
error("installing audio enhancements")
|
||||
return
|
||||
|
||||
if settings.satellite.event_service_command and (("2mic" in settings.satellite.event_service_command) or ("4mic" in settings.satellite.event_service_command)):
|
||||
if settings.satellite.event_service_command and (
|
||||
("2mic" in settings.satellite.event_service_command)
|
||||
or ("4mic" in settings.satellite.event_service_command)
|
||||
):
|
||||
result = run_with_gauge(
|
||||
"Installing event requirements...",
|
||||
[
|
||||
pip_install("-r", str(PROGRAM_DIR / "requirements_respeaker.txt"))
|
||||
],
|
||||
[pip_install("-r", str(PROGRAM_DIR / "requirements_respeaker.txt"))],
|
||||
)
|
||||
if not result:
|
||||
error("installing event requirements")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""Satellite settings."""
|
||||
from typing import Optional
|
||||
|
||||
from .const import SatelliteType, Settings, PROGRAM_DIR
|
||||
from .const import PROGRAM_DIR, SatelliteType, Settings
|
||||
from .whiptail import error, inputbox, menu, passwordbox, radiolist, run_with_gauge
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user