Files
chatkit/dist
CatoandClaude 2acd94e60c feat(dictation): with a server leg, the mic records until you press done (#60)
With `transcribe`/`transcribeUrl` and no `prefer`, a press used to start on
the browser recogniser, which on Android ends the take at the first pause
whatever `continuous` says. OrangeCat's bot chats passed no `prefer`, so a
person speaking to Causius was cut off after one or two seconds while the
Cat's composer in the same app (`prefer: "server"`) listened to the end.

- New default: server first whenever there is a server leg; browser first
  only without one, or with an explicit `prefer: "browser"`.
- `dictationLeg()` is the rule, pure and tested; `start()` uses it.
- Browser test: the take outlasts a 5.5 s pause; the Android recogniser test
  asks for the browser leg through the demo's `?prefer=browser`.
- browser-scroll.mjs: read the file before writing the head, so a 404 no
  longer crashes the run with "headers already sent" (failed on main too).
- 0.22.0.


Claude-Session: https://claude.ai/code/session_019MDtmsZNxP7CFqQUe4uV3t

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 07:09:30 +01:00
..