You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Live dictation: see the transcript in the composer while you talk (and edit it)
#9630
Hey! I do most of my prompting by dictation, and the thing that bugs me is that while recording, the composer gets swapped out for the green bar. So I can't see what it's hearing until I stop, and if it got a word wrong I only find out after and have to go fix it by hand.
This idea is to write the transcript straight into the composer as it comes in:
Same audio and timing on both sides, left is current Paseo. Turns out the daemon already sends dictation_stream_partial for local dictation (roughly once a second), the composer just ignores it right now. So it's app-only, no protocol changes.
Since the text is in the input, you can also click a word and fix it, or Shift+Enter for a new line, while it's still recording. New speech just keeps going wherever your cursor is. The Claude desktop app does this and it's the thing I missed most.
Some choices I made, all open to changing:
Text is italic/muted while recording and goes back to normal when you stop.
Small controls in the toolbar (meter, timer, cancel, keep, send) instead of the overlay. The overlay still shows for the failed/retry state.
Enter, ✓ and hitting Cmd+D again all stop and keep the text; only ↑ sends. Once you can edit mid-recording, it felt bad for a stray Enter to send a half-fixed message. This does change the current Enter-sends behavior though, so it could be a setting.
Cancel puts the draft back how it was before dictating (or just drops the unfinished words if you edited).
OpenAI STT doesn't send partials, so with that it fills in every ~15s instead.
Stuff that's not perfect yet:
Each update re-transcribes the current chunk, so if you edit right as it's revising a nearby word, it can occasionally drop or double a word.
The controls take up some room, so the model/thinking labels collapse while recording.
I've only tested on Mac desktop. The same composer runs on iOS/Android/web and I haven't tried those.
Got a working branch with tests. Happy to open a PR if it's something you'd want, or feel free to just use it as a reference.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hey! I do most of my prompting by dictation, and the thing that bugs me is that while recording, the composer gets swapped out for the green bar. So I can't see what it's hearing until I stop, and if it got a word wrong I only find out after and have to go fix it by hand.
This idea is to write the transcript straight into the composer as it comes in:
Same audio and timing on both sides, left is current Paseo. Turns out the daemon already sends
dictation_stream_partialfor local dictation (roughly once a second), the composer just ignores it right now. So it's app-only, no protocol changes.Since the text is in the input, you can also click a word and fix it, or Shift+Enter for a new line, while it's still recording. New speech just keeps going wherever your cursor is. The Claude desktop app does this and it's the thing I missed most.
Some choices I made, all open to changing:
Stuff that's not perfect yet:
Got a working branch with tests. Happy to open a PR if it's something you'd want, or feel free to just use it as a reference.
All reactions