hex/src/dictation
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dax 6ed0a982ad
windows: name the website of browser meeting calls (#2079)
* read the browser's page for windows meeting detection

Windows meeting detection read nothing from a browser holding the
microphone, so a Meet or Teams page in Chrome was offered as a generic
"Call in Google Chrome" and recorded under the browser's name.

Every visible window of the browser's executable is now read through UI
Automation (the Chromium utility process that holds the microphone has no
window), on a helper thread with one read in flight and a 2 s deadline;
titles are read inline, so a hung provider still answers with them. The
address and title choice matches macOS: a page that names a call wins, and
a call's tab title outranks another window's address.

* make the windows meeting read cheap and clean its window titles

Review of #2079:
- FindAll walked a page's whole content for every probe. The walk now
  follows only the browser's own chrome and stops at Document elements,
  and one UI Automation instance (one COM initialization) serves a
  whole meeting read instead of one per window.
- A Windows window title is a whole window's, not a tab's: zero-width
  characters, the browser's own name, Edge's profile name, and Edge's
  "and N more pages" are removed before detection reads it.
- macOS shares the page-choice rule (`detection::call_page`) instead of
  keeping its own copy.

* read the meeting page with one FindFirst per window

Second review of #2079:
- Dictation's foreground page read and its guard are back to origin/dev's
  own function bodies, byte for byte.
- The meeting read asks each window's root for its first Document with
  FindFirst over the Document control type. UI Automation searches in
  pre-order and stops at the first match, so page content is never
  searched however many tabs or bookmarks a window shows; the walker and
  its element cap are gone. One automation instance still serves the
  whole read, with its 2 s deadline and one-in-flight guard.
- Window title cleanup moves to meeting::window_title (detection.rs had
  reached its size limit). It keeps the notes on Edge's ambiguous profile
  segment and the English-only "and N more pages", and now also drops
  Chrome's trailing " - Google Chrome - <profile>".
2026-11-20 15:03:41 -05:00
..
processor use OpenCode's default model for meeting summaries (#1844) 2026-11-14 22:53:32 -05:00
apple_cleanup.rs labs: neutral voice for chosen modes (#2043) (#2049) 2026-11-20 11:51:08 -05:00
audio.rs feat(history): find dictations and captures together on Mac (#1932) 2026-11-19 19:52:09 -08: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
diagnostics.rs refactor: derive hand-kept lists and literals from one source (t1539) (#1749) 2026-11-12 11:58:11 -08:00
filler_words.rs only remove filler words from english dictation (#1492) 2026-11-07 11:26:30 -05:00
indicator.rs feat(meetings): widen the listening field across the open header 2026-11-18 17:05:01 -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 history: chart the dictation stats dialog (#1962) 2026-11-18 03:38:56 -05: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
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: neutral voice for chosen modes (#2043) (#2049) 2026-11-20 11:51:08 -05:00
release_tail.rs dictation: keep the live stream inside the clip and stop calling a feedback tone a lost opening (#1911) 2026-11-16 14:36:17 -05: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
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
tail_tests.rs Fold dictation_* into dictation/ 2026-10-31 15:13:56 -07:00
text_replacements.rs Fold dictation pipeline modules into dictation/ 2026-10-31 16:12:40 -07:00
vocabulary.rs make the labs card copy plain (#1929) 2026-11-16 22:32:02 -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