Skip to content

A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.

TypeScript

docs(odd): specify Apple Speech with native buffers and start S25 (L108)

Alan Buscagliac491d832dd43
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.md
index 4241533..75a83ae 100644
--- a/odd/tasks/gentle-dot.md
+++ b/odd/tasks/gentle-dot.md
@@ -118,6 +118,7 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo
- **S30.2 OpenAI API key, when connected.** If an OpenAI API key is connected in Accounts, the daemon transcribes recorded audio with OpenAI (`/v1/audio/transcriptions`, a gpt-4o transcribe model) and speaks replies with OpenAI text to speech; the key never leaves the daemon. On the desktop the key is preferred when present; in the web UI it is the only way to talk (the web shows the mic only when a key is connected, over HTTPS or localhost). Recordings are capped (about 60 s) to fit the WebSocket limit.
- **S30.3 Spoken replies.** Without a key, replies are spoken with the system voices (speechSynthesis in the UI, matching the reply language when possible). Only replies to a spoken message are read aloud; a mute toggle in the panel header silences them (remembered), and starting to talk or pressing Stop cuts the speech.
- **S30.5 Optional local model (L89).** User: "no seria mejor sino tener un modelo de ia local chiquito? Parakeet es muy muy bueno", then "pero que sea opcional para descargarlo si solo quiere". Voice settings offer a "Download local voice model" action for NVIDIA Parakeet TDT 0.6B v3 (25 European languages incl. Spanish, huggingface.co/nvidia/parakeet-tdt-0.6b-v3), run through the `sherpa-onnx` Rust crate (offline transducer, int8 model; works on macOS and Linux). Nothing downloads unless the user asks; the download shows size and progress, can be cancelled, verifies the files, and can be removed. When present, it is the preferred speech-to-text engine on that machine (fully offline); otherwise S30.1/S30.2 apply. On Linux it is the only desktop voice engine besides an API key.
+ - **S30.6 Apple Speech gets the microphone's own audio (L108).** On macOS without the local model, the recognizer receives the input node's native buffers (its own sample rate and channel layout, or a high-quality AVAudioConverter mono conversion), not our 16 kHz box-filtered stream, which Parakeet keeps using. The user reported that Apple Speech transcribed "cualquier cosa" in both languages while Parakeet, fed the same capture, transcribed correctly (L101-L102).
- **S30.4 Mic button.** A mic button in the composer: tap to start, tap to stop; while recording it shows the level and elapsed time, Esc or ✕ cancels, and the final transcript is left in the input, after any typed text, for the user to confirm with Enter (L103); a remembered "Send when I stop" switch in the recording strip sends it on stop instead. A sent message that included a dictation has its reply read aloud. When voice is unavailable the button explains why (missing permission, unsupported, web without a key).
- **S31 — Send files to the assistant (L91).** User: "y una cosa mas :) la posibilidad de pasar archviso por chat, eso estaria genial". Choice: "Solo yo al agente".
@@ -180,8 +181,9 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo
| T31 | S32 | delegated writer, parallel with T29c | done (real Mac pending) | `d0b63ce`; RED 16 failing → GREEN; parent re-ran pnpm test 579 |
| T32 | S24.10 | inline, after T31 | done (real NaN check pending) | `d9f0fa8`; RED 2 files failing → GREEN; pnpm test 584 | Model picker in the chat |
| T33 | S33 | delegated writer (context backstop; Rust + UI) | done (real Mac pending) | `2d1f5e4`; RED 51 compile errors + UI import → GREEN; cargo test 314, pnpm test 609 | Settings screen with a recordable, live-applied shortcut |
+| T34 | S30.6 | delegated writer (Rust, `apps/desktop/src-tauri/src/voice/**`), parallel with the S25 map | in progress | — | Apple Speech fed with native buffers |
| T22 | S18 (hardening, L47 B1/B2) | delegated writer | done (accepted with documented gaps, L52) | `8651bba`; parent re-ran 328 tests + typecheck | Option A: authoritative in-memory connector state with revert, credential reads blocked, path-independent bash checks, full approval preview, redirect manual, private Engram stop, onboarding overlap fix |
-| T23 | S25 | explore → spec → implement (stage 2) | pending | — | Daemon-side MCP proxy with Keychain tokens |
+| T23 | S25 | explore (delegated, read-only) → spec → implement (stage 2) | in progress | — | Daemon-side MCP proxy with Keychain tokens |
| T9 | S1–S6, S9–S12 | delegated verifier (high risk: process supervision, auth) | done | L24 + L31 | Full verification: unit, integration, Playwright, `@real-agent`, `tauri build` + launch, manual macOS checklist with observed results |
Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `rustc` is not, so T7 must first install or repair the Rust toolchain (rustup) and asks before installing. Xcode is present.
@@ -292,6 +294,7 @@ Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `r
- **L102 (2026-10-09, user):** "bien pero, mientras estoy hablando no me aparece lo que se va enviar como cuando uso el bui† in de mac" — Parakeet transcribes correctly with our capture, so the earlier garbage came from Apple Speech with our converted 16 kHz audio (open: feed Apple the device's native buffers). Live text with the local model (`e027b19`): the recording so far (last 30 s at most) is decoded again every 0.8 s of new audio, skipping when the model is still loading or a decode runs (never blocking the audio thread), serialized with the final decode, and never shown after stop/cancel; RED (compile) → GREEN, cargo test 296. The Voice chip now names the engine ("Offline", "macOS", "Off"; `1396457`). Rebuilt, signed, restarted (also applies the model-chip fix `7ab0c0a`).
- **L103 (2026-10-09, user):** "estaria bueno que si pongo el boton de grabar de nuevo en vez de enviarlo, que se quede escrito en el input para confirmarlo, como se comporta ahora estaria bueno que sea una opcion que uno elijiese". S30.4 updated: review in the input is the default; "Send when I stop" (switch in the recording strip, stored in localStorage) keeps send-on-stop; the mic button reads "Stop and review" or "Stop and send". `e0010eb`: RED 3 failing → GREEN, pnpm test 593 (the earlier tests now cover the option). Rebuilt, signed, restarted.
- **L104 (2026-10-09, user):** "sube todo esto al repo y fijate el readme de gentle ai como es para copiar el estilo y hacer el propio para Gentle Dot"; choices "Gentleman-Programming/gentle-dot, público" and "main + feat/gentle-dot, y abro el PR (recomendado)"; then "usa la rosa con glow como banner". TruffleHog over the whole history: no verified secrets (unverified hits are masking-test fixtures). README rewritten in Gentle-AI's layout with an honest Security status; banner and divider rendered from the Dot's own rose strokes and glow (`docs/brand/tools/build-banner.mjs`); MIT LICENSE as in Gentle-AI. Created the public repo github.com/Gentleman-Programming/gentle-dot, `main` at the first commit `5ec596c`, pushed `feat/gentle-dot` (153 commits, 286 files, +57,416), and opened PR #1 (single-pr). Merge is the user's decision.
+- **L108 (2026-10-09, user):** "merge" — PR #3 merged (`231f413`). Then "da a todos" for: Apple Speech with native buffers (S30.6/T34, writer launched), S25 (T23, read-only map launched in parallel), and the real-hardware checks (need a second Mac, an x86_64 PC, and GNOME/Hyprland desktops: handed to the user and testers as a checklist).
- **L107 (2026-10-09):** User: "merge el pr" — PR #2 merged (`0c3a7a3`). T33 done (`2d1f5e4`): `shortcut_get`/`shortcut_set` (panel only), pure `shortcut.rs` rules, apply = register new → save → release old → tray label, rollback when saving fails, config.json read-modify-write 0600, Settings screen with a capture-phase recorder (event.code, so ⌥ does not change the key). Parent changes: the writer's proposal to refuse Shift-only combinations adopted (S33.2 updated: Shift+K would capture capital K everywhere); a pre-existing crash in VoiceModel on a null status (6 unhandled rejections making `pnpm test` exit 1) fixed (`bd819a8`). Known limits: macOS may accept a system-reserved combination (e.g. ⌘Space) that never fires; a combination already global cannot be recorded in the webview. Rebuilt, signed, restarted.
- **L106 (2026-10-09, user):** "porque tiene un space el banner?"; then "sacalo y creo que deberiamos de cambiar por otra cosa, que uno pueda configurar su atajo no siempre space"; placement "Nueva pantalla de ajustes (recomendado)". Banner regenerated without the key chip and README names ⌥ Space as the default (`2556674`, in PR #2). Recorded as S33/T33.
- **L105 (2026-10-09, user):** "merge". PR #1 merged with a merge commit (`ae9e9e9`) to keep the work-unit commits; no CI checks exist on the repo yet. The README and banner are live on main.