mirror of
https://github.com/TaterTotterson/microWakeWord-Trainer-Nvidia-Docker.git
synced 2026-06-12 20:10:19 -06:00
wake sound
This commit is contained in:
@@ -2222,6 +2222,10 @@
|
|||||||
values[key] = field.value || "";
|
values[key] = field.value || "";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
const wakeSoundChoice = String(values.wake_sound_catalog || "").trim();
|
||||||
|
if (wakeSoundChoice && wakeSoundChoice !== "__custom__") {
|
||||||
|
values.wake_word_triggered_sound_file = wakeSoundChoice;
|
||||||
|
}
|
||||||
return values;
|
return values;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2300,6 +2304,10 @@
|
|||||||
alert("Enter the device IP or hostname first.");
|
alert("Enter the device IP or hostname first.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const wakeSoundSelect = document.querySelector("select[data-wake-sound-select]");
|
||||||
|
if (wakeSoundSelect instanceof HTMLSelectElement) {
|
||||||
|
syncRenderedWakeSoundSelection({ fromPicker: true });
|
||||||
|
}
|
||||||
|
|
||||||
const ok = confirm(`Build and flash ${template.label || template.value} firmware to ${host}:${port || "3232"}?\n\nMake sure this is the correct device before continuing.`);
|
const ok = confirm(`Build and flash ${template.label || template.value} firmware to ${host}:${port || "3232"}?\n\nMake sure this is the correct device before continuing.`);
|
||||||
if (!ok) return;
|
if (!ok) return;
|
||||||
|
|||||||
@@ -2191,7 +2191,7 @@ def _run_firmware_build_flash_background(session_id: str):
|
|||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
config_path, _normalized, build_path = _render_firmware_config(template_key, values, host, session_id, port)
|
config_path, normalized, build_path = _render_firmware_config(template_key, values, host, session_id, port)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
_append_firmware_log(session_id, f"✗ Failed to prepare firmware config: {exc}")
|
_append_firmware_log(session_id, f"✗ Failed to prepare firmware config: {exc}")
|
||||||
with FIRMWARE_LOCK:
|
with FIRMWARE_LOCK:
|
||||||
@@ -2219,6 +2219,8 @@ def _run_firmware_build_flash_background(session_id: str):
|
|||||||
_append_firmware_log(session_id, f"→ Device: {host}:{port}")
|
_append_firmware_log(session_id, f"→ Device: {host}:{port}")
|
||||||
_append_firmware_log(session_id, f"→ Config: {config_path}")
|
_append_firmware_log(session_id, f"→ Config: {config_path}")
|
||||||
_append_firmware_log(session_id, f"→ Build cache: {build_path}")
|
_append_firmware_log(session_id, f"→ Build cache: {build_path}")
|
||||||
|
if normalized.get("wake_word_triggered_sound_file"):
|
||||||
|
_append_firmware_log(session_id, f"→ Wake sound: {normalized['wake_word_triggered_sound_file']}")
|
||||||
_append_firmware_log(session_id, "→ Running: " + " ".join(command))
|
_append_firmware_log(session_id, "→ Running: " + " ".join(command))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user