mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
A tap only started capture when the finger lifted (~100-150 ms) and push to
talk only after the 0.35 s hold timer, so the first words were lost even
with the capture page ready.
What changed
- The full keyboard's Hex key reports touch-down (onPress) and a press that
becomes a slide to the style menu or is cancelled by the system before it
is a tap or a hold (onPressAbandoned; HexKeyGesture.cancel() now returns
.abandon for a pending press, .ignored once the hold fired).
- KeyboardViewController arms in-keyboard dictation at touch-down, with the
same checks the Hex key uses to pick it (Full Access, no warm session,
in-keyboard dictation available) and only while idle or failed.
- KeyboardLocalDictation.arm opens the microphone at once in a new .armed
phase that the UI doesn't see (no snapshot). start() keeps it as the
dictation (a tap's lift or the hold), so tap and push to talk behave as
before, only listening from touch-down. discard() stops it, deletes its
audio and transcribes nothing: on the menu, a cancelled touch, the
keyboard hiding, a warm session taking over, or 3 s without a tap or hold.
A failure while armed is shown only if the touch is kept.
- The capture page's hexStart now notices a hexStop that came while it
awaited getUserMedia or the audio context (a generation count) and
releases what it opened instead of going on; before, a stop during
getUserMedia left the microphone open until Swift stopped it again on
"started". A page that is idle after cancel() or discard() keeps
listening for its process ending, and closes a stray "started".
- README: listening from touch-down, the dot during a slide, and what only
an iPhone can measure.
Measured (anomastudio, iPhone 13 simulator, iOS 27.2, Release, Hex keyboard
in Messages, 100 ms AXe taps and 1.5 s holds; touch-down to first audio,
median and range; "before" is
|
||
| .. | ||
| CleanupTagger | ||
| TypingModel | ||
| ContainingAppOpener.swift | ||
| HEXKeyboard.entitlements | ||
| Info.plist | ||
| KeyboardLocalDictation.swift | ||
| KeyboardViewController.swift | ||
| PrivacyInfo.xcprivacy | ||