mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 02:47:34 +00:00
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:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user