diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-10 12:45:52 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-10 12:45:52 +0100 |
| commit | c30385b92ff767f8aaff58bf0bc1e5c42ce9036c (patch) | |
| tree | 724f3fca1eacf2ba2cd3d7046befd8b464e42e97 /deckit/modules/assistant.py | |
| parent | c8f5a1e68d3294d4e1c7be3c386f3cc538eeb7af (diff) | |
| download | deck-it-c30385b92ff767f8aaff58bf0bc1e5c42ce9036c.tar.gz deck-it-c30385b92ff767f8aaff58bf0bc1e5c42ce9036c.zip | |
fix(assistant): voice-only tab, tools in an overlay, silent clips dropped
The first voice question on the tablet was a 0.66 s silent clip: the
mic gave no feedback until the next poll, an extra tap made a near-empty
recording, and the model invented a question from the silence. The mic
now turns red on the tap itself, and a clip whose loudest sample is
under 1500 (room noise measured ~260, speech 15000+) is not sent.
Typing happens on the PC, so the text field, send button and the ask
action are gone; the bar is a large mic and a stop icon. The presets and
ops move into an overlay opened from the header, so the transcript gets
the screen.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'deckit/modules/assistant.py')
| -rw-r--r-- | deckit/modules/assistant.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/deckit/modules/assistant.py b/deckit/modules/assistant.py index 247caf4..f0b3947 100644 --- a/deckit/modules/assistant.py +++ b/deckit/modules/assistant.py @@ -203,12 +203,6 @@ def make(cfg: dict) -> Module: out["hears"] = hears(st["models"], out["wanted"]) return out - def ask(body): - text = body.get("text") - if not isinstance(text, str) or not text.strip(): - raise ModuleError("text required") - send(with_model({"type": "ask", "text": text})) - def model(body): mid = body.get("id") with lock: @@ -343,7 +337,7 @@ def make(cfg: dict) -> Module: return Module( name="assistant", title="Assistant", state=state, - actions={"ask": ask, "stop": lambda b: send({"type": "stop"}), + actions={"stop": lambda b: send({"type": "stop"}), "new": lambda b: send({"type": "new"}), "models": lambda b: send({"type": "models"}), "model": model, "voice": voice, "pick": pick, "cancel": cancel}, |
