feat(dictation): pulse three dots in the pill while spoken words are still on their way (#40443)

* feat(dictation): show pending dots while the engine holds speech it hasn't committed

The VAD pause segmenter already knows when a phrase is open. The recognizer
now posts speech-pending when a phrase opens and clears it once that phrase's
text is posted, and the desktop pill shows three dots after the text while it
is on. Only pause-cut on-device streams send it, so cloud, the paired web
client and phones keep today's pill.

* fix(speech): keep a lone click from turning the pending dots on
This commit is contained in:
Kelvin Amoaba
2026-11-09 20:14:48 +00:00
committed by GitHub
parent 4783b08ae5
commit 98bc1acf16
15 changed files with 138 additions and 22 deletions
+6
View File
@@ -84,6 +84,12 @@ export type SpeechTranscriptEvent = {
sessionId: string
}
/** Speech the engine has heard but not committed yet; only pause-cut on-device models send it. */
export type SpeechPendingEvent = {
pending: boolean
sessionId: string
}
/** Desktop audio posted from the preload straight to the speech process; 'end' follows the last frame. */
export type SpeechAudioPortMessage =
| { type: 'feed'; samples: Float32Array; sampleRate: number }