diff options
Diffstat (limited to 'docs/superpowers/specs/2026-10-19-voice-input-design.md')
| -rw-r--r-- | docs/superpowers/specs/2026-10-19-voice-input-design.md | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/docs/superpowers/specs/2026-10-19-voice-input-design.md b/docs/superpowers/specs/2026-10-19-voice-input-design.md index 860967a..551ed60 100644 --- a/docs/superpowers/specs/2026-10-19-voice-input-design.md +++ b/docs/superpowers/specs/2026-10-19-voice-input-design.md @@ -1,6 +1,6 @@ # Voice input: design -Date: 2026-10-19. Status: proposed. +Date: 2026-10-19. Status: implemented (2026-10-19), live-checked. ## Goal @@ -40,9 +40,13 @@ it the reply runs as a typed `ask` with the transcript as `text`: the `user` event, history, search and the date stamp all see the words, not the audio. -Errors answer with `error` (with `turn`) and nothing more is sent: +`audio` that is not a string, or comes with text, answers `bad audio` +(no `turn`, like `bad files`). Otherwise errors answer with `error` +(with `turn`) and nothing more is sent: - not an absolute path, missing, not a readable WAV (stdlib `wave`); + the length comes from the file size, since a recording stopped by a + signal leaves the header's length unset; - longer than 60 s: "recording too long". 60 s is about 1500 audio tokens; past the 2048 ubatch an image crashed the model, and audio has not been tried there; @@ -52,17 +56,18 @@ Errors answer with `error` (with `turn`) and nothing more is sent: ## Transcription -One non-streamed-to-the-client request, thinking off, temperature 0.6, -no tools, no history, no system prompt: +One non-streamed-to-the-client request, thinking off, the configured +temperature (0.6 when tested), no tools, no history, no system prompt: - a text part, "Transcribe this audio exactly, in the language spoken (Italian or English). Output only the transcript."; - an `input_audio` part, `{"data": <base64>, "format": "wav"}`, no `data:` prefix (llamachat's finding). -It goes through `ask()` with the reply's turn, so a stop while -transcribing shuts the request like any other. The transcript is -stripped and goes to `answer()` unchanged. +It goes through `ask()` with the reply's turn. The turn is pending from +the `transcribing` state on, so a stop while transcribing shuts the +request and ends with `done` (stopped) and `idle`, like any reply. The +transcript is stripped and goes to `answer()` unchanged. ## Testing |
