Live dictation sent the OpenAI realtime protocol to ws://host/v1/realtime,
which only Lemonade-style servers implement. Against the local
whisper-server on port 13305 every connection failed with
"websocket-received-error-http-response 404".
Retarget the module at whisper.cpp's native POST /inference endpoint:
- capture 16 kHz mono PCM16 with FFmpeg (now with binary process coding,
which the old version lacked and which would have corrupted the audio)
- cut the stream into utterances with an energy-based VAD: speech starts
above live-dictate-silence-threshold, flushes after a configurable
silence window, with pre-roll and a max-utterance cap
- wrap each utterance in a WAV header and post it with curl, one request
at a time so transcripts are inserted in spoken order
- insert text at the dictation marker with correct spacing, keep the
mode-line indicator and follow-cursor behaviour
- warn when the microphone delivers pure digital silence (OS permission)
New defcustoms: live-dictate-language, -prompt, -silence-threshold,
-silence-duration, -min-utterance, -max-utterance, -preroll.
Comments in config-mac.el and packages.el updated; websocket is no
longer needed by dictation.
The imported Linux-side STT code was inert without these:
- `websocket' is a hard Package-Requires of lisp/live-dictate.el and is what
makes streaming dictation possible.
- `whisper' gates the `use-package! whisper ...' block in config-linux.el,
which also autoloads `live-dictate'.
`doom sync' is required on both machines afterwards. On the mac the two
packages get installed but stay unused, since the whisper/live-dictate block
lives in config-linux.el.
- init.el: rename :ui doom-dashboard to dashboard (Doom 3.0 rename),
enable :editor fold, fix garbled file-templates comment line
- packages.el: install pi-coding-agent from dnouri/pi-coding-agent
on GitHub instead of the default recipe
- mostalive/journelly-convert-entry-to-org-roam.el: replace obsolete
cl-lib-defstruct with cl-defstruct
- custom.el: record accepted safe-local-variable value (auto-generated)
The ':lang org +pomodoro' flag was obsoleted in Doom 25.04 and no
longer installs the package, so M-x org-pomodoro was missing. Install
it via packages.el and remove the dead flag from init.el.