Commit Graph
5 Commits
Author SHA1 Message Date
Claude 1730e47efd voice: room to think — longer pauses, "euhhh" keeps the turn open, names in answers
- Pauses: 1.6 s for a command (was 1.2), 2.6 s after "et / euh / le…", 3.2 s when
  Coucou asked for free text (who, subject, the mail's text, what to look up).
- A voice-like sound keeps the turn open even without words (thinking out loud),
  within the command's max duration.
- "image image" (an answer repeated in one turn) counts once.
- "Il s'appelle Enzo", "son nom c'est…", "his name is…" → Enzo; contacts are searched
  with the whole name, then its capitalised words, then each word.
- Logs (no words) when speech is dropped because Coucou was still talking.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-10 21:29:50 +02:00
Claude bc2c733527 Mochi at 30/60 fps with the same motion, calmer resting poll, no "too many hits" in voice, mails always written by Coucou
- Main Mochi drawn at 60 fps open and 30 fps in the resting island; MochiFrameClock
  keeps one engine step per display frame, so the motion is unchanged (minis share it).
- Mochi reads the pointer itself each frame: the resting island polls like the hidden
  one (60 Hz near it, 20 Hz around, 8 Hz elsewhere).
- Voice misses no longer post .botDizzy (the slap reaction, which opened "Too many hits
  at once"), and a question back is not a miss: a small surprised emote instead.
- Guided mail: what I say for the text is always what the mail should say, Coucou writes
  it ("faut dire que l'image est prête" → a short mail). "Mot pour mot / word for word"
  dictates the exact text. Written in the language of the instruction; a plain mail
  ("Bonjour, … Bonne journée !") when no model is available.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-10 20:47:16 +02:00
Claude 323d89e819 voice: guided email, drop the attachment on the notch, web search, woman/man voice
- "Send an email": Coucou asks who, the subject, the text (or writes it), then
  "any attachment?" - drop the file on the notch or say no. The island's mail card
  opens filled in and stays open until Send (Apple Mail) or Cancel. "Cancel" stops it.
- Web search (Settings > Voice, off by default, Anthropic key): questions no pill
  answers, or "search the web for...", go to Claude with web_search; short spoken
  answer, follow-ups keep the thread (memory only, forgotten after 90 s).
- Mac voice: gender from the voice name when macOS reports none, so Woman gives Ava;
  pitch per voice type with a slider, the man a bit higher by default.
- ElevenLabs man: a young voice first.
- One-word replies to Coucou's own questions are no longer dropped as noise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-10 19:29:08 +02:00
Claude 96b68e306b voice: English by default, ElevenLabs voices, real emails in Apple Mail
From Louis's test of #461:
- English: Coucou listens and answers in English by default (Settings →
  Voice → language, French still available). Recognition locale, spoken
  answers, model instructions and the caption follow it. English parser
  gaps fixed: "make Cursor my main pill", "play my Focus playlist".
- ElevenLabs: Settings → Voice → Voice: Mac voice or ElevenLabs, API key
  in the Keychain, Woman / Man, "Test the voice". No hard-coded voice ID
  (ElevenLabs' default voices expire 31 Dec 2026 and newer accounts don't
  have them): the first English voice of the chosen gender in the user's
  account, cached. eleven_flash_v2_5, each sentence fetched as soon as it
  is queued; any failure falls back to the Mac voice for that sentence.
- Mail in Apple Mail with subject, body and attachment, dictated in one go:
  "il y a une image qui s'appelle Goku.png, envoie-la par mail à
  tana@gmail.com, en objet … en description …" (FR/EN). Spoken addresses
  ("arobase / at", "point / dot"), files in Downloads, Desktop, Documents
  and Pictures, "Goku point png". "Write an email to Tana thanking her…"
  → the on-device model drafts the body. Mail opens filled in; the user
  clicks Send (never sent by voice). New MailTool for the model.
- "écris un mail à Tana" was read as a question about Resend stats: write
  verbs are commands now, and generic "mails" means Resend only with
  "combien / derniers / envoyés / how many / sent".
- VS Code: aliases for how recognition writes it (vscode, v s code,
  visual studio code…), and agents questions about it.

Tests: VoiceQuery 58, IntentParser 165, all voice scripts green.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-10 18:11:01 +02:00
Claude 5eacaa1175 voice: ask Coucou about everything — services, weather, mail, apps
Louis: "que je puisse littéralement tout demander à Coucou par la voix".

Questions (VoiceQuery, pure + tested): Stripe ("combien j'ai fait
aujourd'hui"), GitHub (stars, PRs, CI), Vercel (last deployment),
Resend, n8n, Notion, Cal.com (next booking), agents ("qu'est-ce qui se
passe sur mon Claude Code", approval waiting first), Claude/Codex plan
usage, music now playing, active pills, weather today/tomorrow. A phrase
with an action verb stays a command. Answers in French or English.

Data (VoiceDataSources, Mac): what the pollers already keep in AppState.
New network, only for services the user configured and only when asked:
- Stripe: today's succeeded charges (minus refunds) with their key;
- Open-Meteo weather: off by default, Settings → Voice toggle + city,
  15 min cache.

Mail: "envoie (le fichier X des téléchargements) à Tana" → address from
Contacts (asked on first use; NSContactsUsageDescription + addressbook
entitlement on the GitHub builds), file from Downloads/Desktop/Documents
(most recent match), then Mail opens a compose window. It never sends:
the user clicks Send (CLAUDE.md).

Apps: "ouvre Figma" → /Applications, /System/Applications, ~/Applications.

On-device model: new ServiceTool returns the same real data, and the
instructions say to call it before answering about a service.

Tests: VoiceQueryTests 48/48 (Louis's own questions), new CI step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-10 17:36:02 +02:00