hex/src/dictation
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dax 1bbfc8dfa1
dictation: don't count audio before output suppression as missed opening speech (#2338) (#2514)
With Lower audio, Mute, or Pause media, a hotkey capture keeps no pre-roll
and asks for output suppression only once it passes the 300 ms hold; Lower
audio then ramps over 120 ms on its own thread. Audio still coming from the
speakers in that window was counted as speech the stream missed, so nearly
every dictation with something playing fell back to the whole clip.

The recording environment now reports the moment suppression actually
changed the output, and only when it did: Lower audio sends when the ramp
first writes its full target, from the ramp's own thread, so a late Bluetooth
readback no longer delays it; Mute when the write lands over a non-zero
volume; Pause media the latest of the player pause command being issued and
the browser pause being sent, without the browser's confirmation windows. The
report is asynchronous, so stopping or another session is never held up
behind a ramp. Nothing is reported when the effect changed nothing, was
skipped on headphones under Labs › Only on speakers, or was stopped before
the target was written.

The audio owner maps the reported moment onto the recorded timeline and adds
a 40 ms speaker-to-microphone margin; up to one resampler input buffer may
still be unprocessed, so the position can sit slightly early, which only ever
ignores less speech. The live stream's head is raised with
Command::IgnoreHead, applied before it finalizes if it arrives before Finish;
one after the finish is ignored.

Checks: a_reported_effect_raises_the_head_from_the_recorded_timeline,
media_speech_before_output_suppression_took_effect_is_not_a_lost_opening,
speech_after_the_raised_head_is_still_a_lost_opening,
a_head_raised_before_the_finish_keeps_the_stream,
a_head_raised_after_the_finish_cannot_save_the_stream,
a_guard_reports_when_the_target_is_written_not_when_the_readback_settles,
a_guard_that_changes_nothing_reports_no_moment, and
muting_an_already_silent_output_changes_nothing. Linux and Windows keep their
current head (ROADMAP). Not measured on a microphone or a device.
2026-11-23 07:09:11 -05:00
..
modes refactor(dictation,paste): share finished-dictation output policy and clipboard restore guard (#2505) 2026-11-23 00:34:54 -08:00
processor labs: dictation style (polished, casual, notes, verbatim) for desktop dictation (#2326) 2026-11-22 01:55:42 -05:00
style labs: dictation style (polished, casual, notes, verbatim) for desktop dictation (#2326) 2026-11-22 01:55:42 -05:00
vocabulary vocabulary: import and export csv files (labs) (#2117) 2026-11-20 19:37:20 -05:00
apple_cleanup.rs Windows: dictation defaults to Left Alt alone (#2292) 2026-11-21 21:38:29 -05:00
audio.rs dictation: don't count audio before output suppression as missed opening speech (#2338) (#2514) 2026-11-23 07:09:11 -05:00
browser_page.rs windows: name the website of browser meeting calls (#2079) 2026-11-20 15:03:41 -05:00
caret_prompt.rs feat(labs): let the rewrite read text around the cursor (macOS) (#1815) 2026-11-13 23:36:24 -05:00
caret_text.rs feat(labs): let the rewrite read text around the cursor (macOS) (#1815) 2026-11-13 23:36:24 -05:00
config.rs make the labs card copy plain (#1929) 2026-11-16 22:32:02 -05:00
context.rs windows: name the website of browser meeting calls (#2079) 2026-11-20 15:03:41 -05:00
corpus_tests.rs Fold dictation_* into dictation/ 2026-10-31 15:13:56 -07:00
correction_terms.rs Labs: learn from corrections (macOS) (#2149) 2026-11-21 02:28:29 -05:00
correction_watch.rs Labs: learn from corrections (macOS) (#2149) 2026-11-21 02:28:29 -05:00
diagnostics.rs refactor: derive hand-kept lists and literals from one source (t1539) (#1749) 2026-11-12 11:58:11 -08:00
environment.rs dictation: don't count audio before output suppression as missed opening speech (#2338) (#2514) 2026-11-23 07:09:11 -05:00
filler_words.rs only remove filler words from english dictation (#1492) 2026-11-07 11:26:30 -05:00
indicator.rs refactor(ui,hud,onboarding): explicit state machines for modals, HUD indicator, and onboarding (#2484) 2026-11-22 22:43:03 -08:00
live_text.rs feat(windows): /dictations records with Hex's own microphone, and a dictation can stream its live text (#1474) 2026-11-07 16:21:52 -06:00
modes.rs refactor(dictation,paste): share finished-dictation output policy and clipboard restore guard (#2505) 2026-11-23 00:34:54 -08:00
neutral_voice.rs labs: neutral voice for chosen modes (#2043) (#2049) 2026-11-20 11:51:08 -05:00
numbers.rs labs: neutral voice for chosen modes (#2043) (#2049) 2026-11-20 11:51:08 -05:00
opening_head.rs dictation: don't count audio before output suppression as missed opening speech (#2338) (#2514) 2026-11-23 07:09:11 -05:00
paste_last.rs labs: signature line for dictation (#2319) 2026-11-22 00:47:26 -05:00
paste_target.rs windows: don't paste into the desktop or taskbar, keep the dictation on the clipboard (#2016) 2026-11-19 19:10:26 -05:00
processor.rs labs: dictation style (polished, casual, notes, verbatim) for desktop dictation (#2326) 2026-11-22 01:55:42 -05:00
release_tail.rs refactor(audio): explicit owner/recovery states and composed OS audio control (#2485) 2026-11-22 22:46:17 -08:00
screen_vocabulary.rs make the labs card copy plain (#1929) 2026-11-16 22:32:02 -05:00
service.rs fix: query recording owners and unify transformation startup (t1549) (#1760) 2026-11-12 17:56:25 -08:00
signature.rs labs: signature line for dictation (#2319) 2026-11-22 00:47:26 -05:00
spoken_formatting.rs Fix #1167: dictation text post-processing (spoken quote/unquote keywords) (#1169) 2026-11-03 12:27:07 -05:00
spoken_symbols.rs Fix #1040: spoken symbols and spoken formatting commands (#1041) 2026-11-02 11:39:43 -05:00
stop_phrase.rs labs: stop phrase finishes a hands-free dictation (#1886) 2026-11-16 06:19:37 -05:00
style.rs labs: dictation style (polished, casual, notes, verbatim) for desktop dictation (#2326) 2026-11-22 01:55:42 -05:00
tail_tests.rs refactor(audio): explicit owner/recovery states and composed OS audio control (#2485) 2026-11-22 22:46:17 -08:00
text_replacements.rs fix(transcription): drop Russian Whisper credits and correct vocabulary spellings (#2290) 2026-11-21 19:53:07 -05:00
vocabulary.rs fix(transcription): drop Russian Whisper credits and correct vocabulary spellings (#2290) 2026-11-21 19:53:07 -05:00
voice_prompt.rs make the labs card copy plain (#1929) 2026-11-16 22:32:02 -05:00
yolo_mode.rs fix(modes): match a picked app under its Finder name too (#2001) 2026-11-19 09:34:33 -08:00