Fixes
This commit is contained in:
@@ -119,6 +119,17 @@ 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)):
|
||||
result = run_with_gauge(
|
||||
"Installing event requirements...",
|
||||
[
|
||||
pip_install("-r", str(PROGRAM_DIR / "requirements_respeaker.txt"))
|
||||
],
|
||||
)
|
||||
if not result:
|
||||
error("installing event requirements")
|
||||
return
|
||||
|
||||
generate_services(settings)
|
||||
|
||||
password = passwordbox("sudo password:")
|
||||
|
||||
@@ -84,17 +84,25 @@ def configure_feedback(settings: Settings) -> None:
|
||||
while True:
|
||||
choice = menu("Main > Satellite > Feedback", [("respeaker", "ReSpeaker")])
|
||||
if choice == "respeaker":
|
||||
selected_service: Optional[str] = None
|
||||
if settings.satellite.event_service_command:
|
||||
if "2mic" in settings.satellite.event_service_command[0]:
|
||||
selected_service = "2mic"
|
||||
elif "4mic" in settings.satellite.event_service_command[0]:
|
||||
selected_service = "4mic"
|
||||
|
||||
event_service = radiolist(
|
||||
"Event Service:",
|
||||
[
|
||||
("2mic", "2mic LEDs"),
|
||||
("4mic", "4mic LEDs"),
|
||||
],
|
||||
selected_service,
|
||||
)
|
||||
|
||||
if event_service is not None:
|
||||
settings.satellite.event_service_command = [
|
||||
str(PROGRAM_DIR / "script" / "run_{event_service}"),
|
||||
str(PROGRAM_DIR / "script" / f"run_{event_service}"),
|
||||
"--uri",
|
||||
"tcp://127.0.0.1:10500",
|
||||
]
|
||||
|
||||
@@ -222,6 +222,9 @@ def install_services(settings: Settings, password: str):
|
||||
assert settings.wake.system is not None, "No wake word system"
|
||||
installed_services.append(WakeWordSystem(settings.wake.system).value.lower())
|
||||
|
||||
if settings.satellite.event_service_command:
|
||||
installed_services.append("event")
|
||||
|
||||
install_commands = []
|
||||
for service in installed_services:
|
||||
service_filename = f"wyoming-{service}.service"
|
||||
|
||||
Reference in New Issue
Block a user