Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
chore: auto-save WIP via Claude stop-hook safety net (2026-07-01 20:41)
Ruben Lütke3e83f73b6bb2
diff --git a/scripts/record_wake_samples.py b/scripts/record_wake_samples.pyindex 5bf9f8e478..055d9f48b1 100644--- a/scripts/record_wake_samples.py+++ b/scripts/record_wake_samples.py@@ -43,6 +43,29 @@ def record_one(path: str) -> float:return float(np.sqrt(np.mean((a.astype(np.float32) / 32768.0) ** 2)))+NEG_OUT = os.path.join("data", "wake_samples", SLUG + "_neg")+NEG_SECONDS = 60.0+++def record_negatives() -> None:+ """Capture ~60 s of your real environment as NEGATIVES: breathing, silence,+ and normal talk — but NEVER the wake phrase. This is what teaches the model+ to STOP false-firing on your breath / room / random words."""+ os.makedirs(NEG_OUT, exist_ok=True)+ print(f"\nNow ~{int(NEG_SECONDS)}s of your normal environment as NEGATIVES.")+ print(f"Breathe, be quiet, talk about anything — but do NOT say '{PHRASE}'.")+ for c in (3, 2, 1):+ print(f" starting in {c}...", end="\r", flush=True)+ time.sleep(0.8)+ print(" RECORDING negatives — breathe / talk / stay quiet (no wake word) ", flush=True)+ chunk = 3.0+ n = int(NEG_SECONDS / chunk)+ for i in range(n):+ record_one(os.path.join(NEG_OUT, f"neg_{i:02d}.wav"))+ print(f" negatives {int((i + 1) * chunk)}/{int(NEG_SECONDS)}s...", end="\r", flush=True)+ print(f"\n saved {n} negative clips to {NEG_OUT}")++def main() -> None:print(f"\nRecording {COUNT} samples of '{PHRASE}'. Speak naturally, at your")print("normal distance and volume. Vary it a little (a bit faster/slower).\n")@@ -58,8 +81,9 @@ def main() -> None:print(f" (very quiet, rms={rms:.3f} — kept, but speak up if you can)")kept += 1time.sleep(0.3)- print(f"\nDone. Saved {kept} samples to {OUT}")- print("Tell the assistant you're finished — it will retrain the model on your voice.")+ print(f"\nSaved {kept} wake samples to {OUT}")+ record_negatives()+ print("\nAll done. Tell the assistant you're finished — it retrains on your voice + environment.")main()