mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
What changed
- ParakeetTranscriber.downloadModel (the app's engine and Speech model in keyboard's download
from Hex) downloads ParakeetV2Files (revision ee09c569, 21 files with sizes and SHA-256)
with the download Parakeet Ultra already uses (ParakeetUltraModel.download, whose File is
now PinnedModelFile): each file resumes from its .partial with a range request and gets its
name only once its SHA-256 matches; the folder is marked complete at the end and leftovers
(FluidAudio's .etag, the keyboard's .download and .resume) are removed.
- Replaced: FluidAudio's ModelHub.download of Hugging Face's main (its listing of the
repository, its ETag check of partials and its vocabulary fallback). Hugging Face changing
main can no longer change what Hex downloads.
- ParakeetTranscriber.hasCachedModel: marked complete, or every pinned file at its full size,
instead of FluidAudio's modelsExist (which a folder of .partial files passes).
Kept, compared one by one
- Progress: downloadModel still reports the share downloaded (bytes of the pinned files
instead of FluidAudio's fraction doubled), feeding the same ParakeetPreparationProgress on
setup and settings ("Downloading the speech model", 70% of the bar) and the switch's row.
- Stall watch: the same StallWatch.run with downloadStallLimit (90 s) on that share, and
DictationController.watchPreparation (30 s / 120 s) untouched.
- Resuming: a file resumes from its .partial (the same name FluidAudio used, so a partial an
earlier build left resumes too); a download cut off in the background still fails as a
download interruption (URLError and downloadFailed, as before) and is picked up when Hex
comes back to the front (isDownloadInterruption, appBecameActive untouched).
- Retries: 4 tries, 1, 2 and 4 s apart, on a dropped connection, a busy server (408, 429,
5xx) or a damaged file, as FluidAudio's RetryPolicy did (4 attempts from 1 s).
- Wording: every download failure still reads "The speech model didn't download. Check your
connection and try again." (TranscriberError.downloadFailed; FluidAudio's errors and the
connection errors it wrapped mapped to it before), and a stall still reads StallWatch's
"The download stopped. Check your connection and try again."
- #2337 and #2371: no change to when a download runs or what happens after a failure: the
download still happens only in the engine's own preparation or beside it for the switch,
so it never blocks dictation, and a working dictation is never taken away.
Why
- The pinned list the keyboard's download needs is worth having for Hex's own download too:
it no longer follows Hugging Face's main, and every file is checked.
Verified
- DictationControllerTests: Parakeet V2 counts as downloaded only with every pinned file at
its size (a .partial doesn't count; leftovers are removed). Studio suite and the phone's
by-hand download in the pull request.
|
||
| .. | ||
| Fixtures | ||
| AppleSpeechAssetReservationsTests.swift | ||
| AutocorrectEngineTests.swift | ||
| CleanupTaggerTests.swift | ||
| CustomVocabularyTests.swift | ||
| DictationControllerTests.swift | ||
| DictationLanguageTests.swift | ||
| DictationLearningTests.swift | ||
| DotScopeTests.swift | ||
| EmojiPanelLettersKeyTests.swift | ||
| EmojiSuggesterTests.swift | ||
| FullKeyboardEngineTests.swift | ||
| GreeklishRomanizerTests.swift | ||
| HangulComposerTests.swift | ||
| HexKeyGestureTests.swift | ||
| KeyboardBridgeTests.swift | ||
| KeyboardDuoCoverTests.swift | ||
| KeyboardLayoutTests.swift | ||
| KeyboardSwitchGuessTests.swift | ||
| KeyboardThemeTests.swift | ||
| LaggingField.swift | ||
| LanguageLearningTests.swift | ||
| ShiftStateMachineTests.swift | ||
| SwipeDecoderTests.swift | ||
| TranscriptCleanupTests.swift | ||
| TwoLanguageMergeTests.swift | ||
| TwoThumbSelectionTests.swift | ||
| TypingGateReplayTests.swift | ||
| TypingLogTests.swift | ||
| TypingReplayTests.swift | ||