Jump to content

Hardware.Claudia/SPEC

From MindAttic Docs

Claudia — Product specification

The complete product, written down before it is built (owner, 2026-11-30, MAT-T360). Every epic, feature and story the finished product will have is listed here, built or not. The ticket tree mirrors this file one to one: every ID below is a ticket. Nothing gets built unless it is here, and anything taken out of here is closed wont-do in the tree. docs/RELEASE.md says which part of this the current milestone delivers.

1. Product definition

Place in the ecosystem: a hardware product (docs/ECOSYSTEM.md §2.2); its keys come from Vault (HC-T45 requires M.VALT-T217).

Claudia is a buildable, vendor-neutral guide, with scripts, config and two drop-in plugins, for an always-on private voice assistant: a Raspberry Pi Zero 2 WH with a USB conversation mic, a USB speaker and a Hiwonder WonderEcho I²C wake-word module, wired to the Claude API through the upstream whisplay-ai-chatbot runtime. The finished product is a guide whose default build and every build option (array mic, cloud speech, battery, printed case, smart plugs) have been verified on real hardware. It is for a non-expert who wants an assistant with no Alexa account and no subscription, assembled in an afternoon.

2. Scope boundary

2.1 In the product

  • The guide (docs/overview.md) and parts catalog config/parts.json with its six build-option axes.
  • Pi software: installer, healthcheck, WonderEcho wake bridge, Vault push and pull of the Pi's .env.
  • Drop-in plugins through upstream's plugins/ folder: ElevenLabs TTS and smart plugs.
  • Verification of the default build and every option on real hardware.

2.2 Never in the product

  • Forking or vendoring whisplay-ai-chatbot: extend it only through its own hooks (CLA-LAW-2).
  • Using the WonderEcho as a microphone: it streams no audio (BIBLE §3).
  • A wake-word trainer: "Claudia" is taught to the WonderEcho by voice.
  • A Whisplay-HAT build.
  • A non-Claude LLM: Claude is the brain by design.
  • An interactive configurator or generated shopping list; a web deploy of its own.
  • Repo-wide bughunt sweeps: defects found on the real Pi are filed as fix tasks (HC-T3).

3. Users and roles

  • A builder follows the guide and picks build options.
  • The owner builds the reference device and verifies each option; every "Owner hands-on" task needs them.
  • An agent keeps the scripts, plugins and docs correct.

4. Requirements

Status is built (closed ticket, with evidence) or MS-n: the milestone in §7 that delivers it. Every unbuilt story is approved and prioritised in build order; the planner splits a story into tasks when the queue reaches it.

E1. Guide, installer and wake bridge — HC-T20 — built

F1.1 Build guide and catalog — HC-T21 — built

  • S1.1.1 Afternoon build guide — HC-T22 — built As a builder, I want one guide from parts to a talking device with no soldering, so that I can finish in an afternoon. Evidence: docs/overview.md.
  • S1.1.2 Parts catalog and build options — HC-T23 — built As a builder, I want every part and the battery, mic, ASR, TTS, case and smart-home axes listed, so that I can choose. Evidence: config/parts.json configAxes.

F1.2 Pi software — HC-T24 — built

  • S1.2.1 Idempotent installer — HC-T25 — built — install-claudia.sh provisions the Pi to start on boot with local Vosk and Piper. Evidence: scripts/pi/install-claudia.sh, CLA-T12..T18.
  • S1.2.2 Five-part healthcheck — HC-T26 — built — I²C, audio devices, wake bridge, network, Claude API. Evidence: scripts/pi/healthcheck.sh.
  • S1.2.3 WonderEcho wake bridge — HC-T27 — built — polls register 0x64 and prints WAKE. Evidence: scripts/pi/wonderecho-wake.py, CLA-T21.
  • S1.2.4 Settings and keys in Vault — HC-T28 — built — claudia_vault.py --pull and --push. Evidence: scripts/claudia_vault.py, CLA-T22, CLA-T24.
  • S1.2.5 Drop-in plugins — HC-T29 — built — ElevenLabs TTS and smart plugs load from upstream's plugins/. Evidence: plugins/elevenlabs-tts/index.js, plugins/smart-plugs/index.js (unverified on hardware: E5, E6).

E2. Hardware in hand — HC-T4 — MS-72

F2.1 Default build parts on hand — HC-T5 — MS-72

  • HC-T6 Refresh prices and stock; HC-T7 Order default-build parts (owner hands-on).

F2.2 WonderEcho taught — HC-T8 — MS-72

  • HC-T9 Teach and probe WonderEcho (owner hands-on); HC-T10 Record WonderEcho findings.

E3. Talking device — HC-T11 — MS-72

F3.1 Installs and passes healthcheck — HC-T12 — MS-72

  • HC-T13 Run installer on real Pi; HC-T14 Converse from boot Acceptance: after a reboot, "Claudia" plus a question gets a spoken Claude answer.

F3.2 As-built record — HC-T15 — MS-72

  • HC-T16 Mark hardware row verified; HC-T17 Add claudia_vault.py to BIBLE.

E4. Speech and microphone options — HC-T30 — MS-126

F4.1 Far-field microphone — HC-T31 — MS-126

  • S4.1.1 Verify the array microphone — HC-T32 — MS-126 As a builder, I want the reSpeaker array option proven, so that I can talk to Claudia across a room. Acceptance: with mic=array, the healthcheck passes and wake-to-answer works across the room.

F4.2 Cloud speech — HC-T33 — MS-126

  • S4.2.1 Verify OpenAI speech — HC-T34 — MS-126 — with asr=openai and tts=openai the device answers; keys from Vault; latency recorded against the local default.
  • S4.2.2 Verify ElevenLabs voice — HC-T35 — MS-126 — with tts=elevenlabs the plugin speaks the answer.

E5. Portable and smart-home options — HC-T36 — MS-126

F5.1 Battery build — HC-T37 — MS-126

  • S5.1.1 Verify the battery build — HC-T38 — MS-126 — PiSugar 3; runtime on a charge recorded.

F5.2 Printed case — HC-T39 — MS-126

  • S5.2.1 Verify a printed case — HC-T40 — MS-126 — FDM or SLA case; mic pickup and volume stay usable.

F5.3 Smart-home plugs — HC-T41 — MS-126

  • S5.3.1 Voice control of a smart plug — HC-T44 — MS-126 As a builder, I want to switch a plug by voice, so that Claudia controls my lamp. Acceptance: a real Kasa, Shelly or Sonoff plug switches through the smart-plugs plugin; setup per brand is documented.

F5.4 Polish and release 1.1 — HC-T42 — MS-126

  • S5.4.1 Release 1.1 sign-off — HC-T43 — MS-126 — overview, BIBLE §6 and brochure mark every option verified with dates; the owner signs off on the finished guide.

5. Non-functional requirements

  • Privacy: only Claude (and cloud speech, if the builder opts in) leaves the device.
  • No soldering: WH Pi with pre-soldered headers and a 4-wire Dupont link.
  • Honest prices and stock: prices flagged non-authoritative, pricesAsOf bumped on each check (CLA-LAW-3).
  • Secrets: keys live in MindAttic Vault and the Pi's .env, never in git.

6. Interfaces and dependencies

  • Upstream PiSugar/whisplay-ai-chatbot (cloned on the Pi, hooks WAKE_WORD_PYTHON_PATH and plugins/).
  • Anthropic Claude API; optional OpenAI and ElevenLabs; Vosk and Piper locally.
  • Platform by concern (docs/ECOSYSTEM.md §2.1): credentials, MindAttic.Vault (device keys provisioned from Vault, HC-T45 under F3.1, requires M.VALT-T217); LLM calls are made on the device to the provider APIs, because MindAttic.Legion is a .NET library the Pi cannot host; this stays until Legion offers an endpoint non-.NET clients can call (missing owner story, reported under MAT-T475); the plan, MindAttic.Tickets. MindAttic docs wiki and brochure publish docs/.

7. Release sequence

  1. MS-72 Claudia 1.0, first device talking (active, docs/RELEASE.md): E2, E3.
  2. MS-126 Claudia 1.1, every build option verified: E4, E5 (ends with F5.4 Polish and release 1.1). The finished product.

8. Change log

Date Change to scope Ticket
2026-11-30 Specification written from the BIBLE, overview, code and ticket history; release sequence MS-72, MS-126 MAT-T375
2026-11-30 MAT-T462 single-source pass: 3 renamed, 0 buckets dissolved, 16 requires added (milestone chain MS-72 -> MS-126; HC-T45 requires M.VALT-T217), 1 platform re-point (HC-T45 moved under F3.1); device-side LLM calls recorded as a gap pending a Legion endpoint for non-.NET clients MAT-T475
From Hardware.Claudia/docs/SPEC.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.