Repository navigation
feat(speech,web): add local 2-phase voice dictation, hands-free commands, and local STT/cleanup endpoints - #19
Conversation
|
Not merged yet: conflicts with current main (translations and others). Needs a rebase on current main. |
…nds, and local STT/cleanup endpoints
36f536f to
7f14d49
Compare
|
Rebased cleanly onto current |
1 similar comment
|
Rebased cleanly onto current |
|
Thanks for the rebase. This isn't mergeable yet, mainly because new defaults change behaviour for users who never opted in. (Review notes prepared with Claude Code on behalf of the maintainer.) |
Local voice dictation previously required an external text-generation provider for Phase 2 transcript cleanup, had no way to drive AI models hands-free or plug in a generic local STT/cleanup server, and could time out on cold Apple Silicon Metal GPU discovery (10s).
What changed
transcribe-cppmodels (e.g. Parakeet 0.6B on Metal/CPU) and now also emits periodic live interim previews for configurable local OpenAI-compatible /whisper.cppHTTP STT endpoints (speechLocalEndpointUrl,speechLocalEndpointModel).speechLocalTwoPhaseCleanup, on by default for local dictation) fixes capitalization, punctuation, contractions, word stutters, spoken self-corrections, and dictionary aliases deterministically with zero API calls, or routes to an optional local OpenAI-compatible/v1/chat/completionsendpoint (speechLocalCleanupEndpointUrl,speechLocalCleanupModel) with automatic local fallback.ChatComposer(voiceCommandsEnabled): switch models (switch to Opus,use model Gemini 3 Pro, or chainedswitch to Sonnet and fix the parser tests, send it), send (send it/over), interrupt (stop generating/cancel turn), and clear draft (clear draft).voiceAutoSend+ configurablevoiceSilenceTimeoutMs) automatically stops recording and submits after a sustained pause in speech.listNativeSpeechGpuDevicesfrom 10s to 30s.Verification
parakeet-unified-en-0.6b-Q8_0.ggufon Apple M2 Metal (MTL0,streaming: true).voiceCommands.test.ts,localEndpoint.test.ts,localCleanup.test.ts,postProcessing.test.ts,SpeechService.test.ts,CloudSpeech.test.ts,packages/contracts/src/settings.test.ts.vp lintacross all 15 changed files (0 warnings, 0 errors).Built with Antigravity.