From 1d73677cddce9a9a843303a489bbb39896b236dd Mon Sep 17 00:00:00 2001 From: Fabian Meyer <44942030+dinooo13@users.noreply.github.com> Date: Tue, 17 Nov 2026 13:53:31 +0100 Subject: [PATCH] Recording cap: a latched recording runs up to an hour The 10 min cap is there for a held key whose key-up is lost, but it also ended hands-free recordings at 600 s, with the stop sound and a paste, in the middle of a dictation meant to be that long. A held recording keeps 10 min; one latched by the time the held cap is reached runs to 60 min, asked then because a hybrid key latches at its release. The engine's copy of the audio for the live pass now keeps only its last window or two, so an hour leaves no 230 MB buffer behind. A 60 min fixture paced in leaves 0.206 s at release against 0.179 s at 10 min, with the text identical to the whole-buffer pass (docs/BENCHMARKS.md, "Past ten minutes"). Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 8 +++---- .../PladderCore/DictationCoordinator.swift | 9 +++++++- .../PladderCore/Learning/CorrectionDiff.swift | 2 +- .../FluidAudioIncrementalEngine.swift | 9 ++++++-- .../DictationCoordinatorTests.swift | 8 ++++++- docs/ARCHITECTURE.md | 6 +++-- docs/BENCHMARKS.md | 22 ++++++++++++++++++- docs/USAGE.md | 2 +- scripts/make-fixtures.sh | 2 +- 9 files changed, 54 insertions(+), 14 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 0fa038f..d79b03c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -64,7 +64,7 @@ swift run -c release pladder-cli polish-set docs/polish-set.json --model s1-mini | Polish toggle | A Text-tab toggle (Polish section, marked Beta), off by default, no key of its own. When on, every dictation runs the usual pipeline, then Apple's on-device model (FoundationModels, `PladderRefine`) with a fixed cleanup prompt, then pastes | Self-corrections, spoken punctuation, number words and lists are beyond the deterministic processors, and the model runs on device with nothing to download. It costs one to three seconds and sits on the normal hotkey's path, which is why it is marked experimental and off: the branch is one Bool read; the session is prewarmed at key-down; transcripts under four words skip it; anything the model cannot do (Apple Intelligence off, refusal, an answer cut off at its token limit, the 8 s budget, which covers loading the model and every chunk of a long dictation) pastes the text as dictated. Logged as its own `polished release-to-paste` line | | Learned corrections | After a paste the field is watched through Accessibility for up to 60 s; a word the user corrects that passes a token diff, a phonetic gate (Soundex or edit distance ≤ 2) and a yes/no review by the on-device model becomes one menu line, "Learned “x” → “y”? Add / Dismiss" | Nothing runs before Cmd+V is posted: the hook is in `AppModel.handle(.inserted)`, the watcher lives on its own thread and reads only the pasted range plus a margin, the review runs on a detached task and waits while a dictation is in flight, since it shares Apple's model with the polish. Only a paste that stayed in its field is watched: not a copy, not a send. Present only with Accessibility and Apple Intelligence, absent otherwise, no change to the menu bar glyph. One switch, "Suggest entries from my corrections" in the Dictionary tab, on by default and shown only where the learner can run: it reads other apps' fields, and revoking the grant the paste needs was the only other way to stop that. Dismissed pairs go to `dismissed-corrections.json`, not settings, so a bug there can never cost the dictionary. Pure case changes are never proposed. Terminals and TUIs expose a screen buffer, not a field, so nothing is learned there | | Managed policy | A configuration profile's Custom Settings payload for `de.dinooo13.pladder`, read with `CFPreferences`, forced values only: `AllowedEngines` and `AllowedPolishModels` (lists, one pins the picker), `PolishDictations`, `LearnCorrections` and `UpdateChecks` (force a toggle on or off; `UpdateChecks = false` also removes Check for Updates…), `ClipboardMode` (Clipboard mode even with the grant: never asks for Accessibility, no tap, no ⌘V, no field read). Read at launch and on the two-second permission poll; applied on top of the user's settings, never written to the file. Managed controls are disabled, never hidden, with "Managed by your organisation." under the group (docs/MANAGED.md) | An organisation that must answer what the app reads and sends had nothing to point at: every choice was in a file the user owns. Managed preferences are root-owned, set by any MDM or by an admin by hand, and need no format, server or request of Pladder's own; a `defaults write` by the user is not forced, so it cannot pose as policy. Keeping the user's own settings underneath means removing the profile loses nothing. A typo is logged and ignored, and a list with no known ID is ignored whole, so a profile never leaves the app without an engine. Offline model provisioning, and the dictionary, keys and the rest, are out of it | -| Toggle key | Another recordable chord, off by default. A chord of its own latches at release however long the press; equal to the push-to-talk chord it makes that key hybrid: a tap under 400 ms latches, a longer hold stops at release. The next press of any chord, Escape or the 10 min cap ends a latched recording. The overlay is the same as for a held recording, in and out; only the menu's status line says which key stops it | Two-minute dictations should not need a key held for two minutes. Handy and VoiceInk default to hybrid on one key; here it is opt-in, because a stray tap would otherwise leave the microphone open until the cap pastes two minutes of room noise. Hold, toggle and hybrid are decided in `HotkeyGestureTracker`, a clockless value type timed by the instant each monitor stamps on its events, so both monitors behave alike and a press that waits for the microphone cannot make the next release look longer. A same-chord press within 50 ms of its release is a bounce (some Bluetooth keyboards do this mid-hold): it never acts, and the first one seen turns on a 50 ms settle before every stopping release for the rest of the run, so only a keyboard that needs it pays for it and the release path is otherwise untouched. No separate press debounce: both monitors already report alternating presses and releases. Without Accessibility the toggle chord registers with Carbon like the key; one Carbon cannot register has no stand-in, except that a hybrid chord follows the key's. With a lone modifier as a hybrid key, the Command of a later Cmd+C ends a latched recording | +| Toggle key | Another recordable chord, off by default. A chord of its own latches at release however long the press; equal to the push-to-talk chord it makes that key hybrid: a tap under 400 ms latches, a longer hold stops at release. The next press of any chord, Escape or the 60 min cap ends a latched recording. The overlay is the same as for a held recording, in and out; only the menu's status line says which key stops it | Two-minute dictations should not need a key held for two minutes. Handy and VoiceInk default to hybrid on one key; here it is opt-in, because a stray tap would otherwise leave the microphone open until the cap pastes two minutes of room noise. Hold, toggle and hybrid are decided in `HotkeyGestureTracker`, a clockless value type timed by the instant each monitor stamps on its events, so both monitors behave alike and a press that waits for the microphone cannot make the next release look longer. A same-chord press within 50 ms of its release is a bounce (some Bluetooth keyboards do this mid-hold): it never acts, and the first one seen turns on a 50 ms settle before every stopping release for the rest of the run, so only a keyboard that needs it pays for it and the release path is otherwise untouched. No separate press debounce: both monitors already report alternating presses and releases. Without Accessibility the toggle chord registers with Carbon like the key; one Carbon cannot register has no stand-in, except that a hybrid chord follows the key's. With a lone modifier as a hybrid key, the Command of a later Cmd+C ends a latched recording | | Escape | Discards a recording without transcribing and plays the stop sound; taken only while a recording is on | Never taken globally, so Escape keeps closing dialogs. On the tap `HotkeyChordSet` catches it before the chord trackers, so the interrupted-press rule never sees it, and Escape with the chord's own modifiers held still counts; Carbon registers the bare key around each recording, from the main queue so the release path never waits on it. Under Secure Event Input a modifier-only chord stays on the tap, where no key-down arrives, so Escape cannot cancel there | | Output | Clipboard + simulated Cmd+V; the transcript is a pasteboard promise and the old clipboard comes back off the critical path, 400 ms after Cmd+V if the target app has read it by then, otherwise 200 ms after it does, or after 8 s if nothing does | Universal, fast. Waiting for the read as well as the 400 ms: an app busy when Cmd+V arrives reads late, and the timer alone handed it the old clipboard (issue #40). A read never shortens the 400 ms, because Chromium sometimes reads once before the real paste and the pasteboard serves the second read itself. The promise is served on the main thread, so a busy Pladder main thread delays the target's read; the `paste` log line records when it came. It relies on the nspasteboard.org markers: without them Universal Clipboard reads every write within ~15 ms, which would pass for the paste | | Polish model | A picker under the toggle: Apple Intelligence (default), S1-mini by Superwhisper at full precision (f16, 1.5 GB) or 8-bit (Q8_0, 805 MB), the S1-mini files run by llama.cpp on the GPU. `PolishRouter` is the coordinator's one refiner and forwards to the chosen model | On the polish set (docs/BENCHMARKS.md) S1-mini is more accurate than Apple's model and three to five times faster, and translated nothing where Apple's model translated two dictations. It is Qwen3-0.6B fine-tuned for dictation cleanup, trained on English, and needs its own fixed prompt. llama.cpp comes as its prebuilt XCFramework, pinned by release and checksum, because MLX Swift needs Xcode to build its Metal shaders; `bundle.sh` embeds and signs the framework. The GPU leaves the Neural Engine to Parakeet. A file downloads only when polish is on and the model picked, is loaded at the first key-down with the fixed prompt prefix decoded once, and is freed on a switch or with polish off. The licence asks for the name as "S1-mini" by "Superwhisper" | @@ -76,7 +76,7 @@ swift run -c release pladder-cli polish-set docs/polish-set.json --model s1-mini | UI language | Follows the macOS system language; no setting | String Catalogs (`Localizable.xcstrings` in the app, `KeyNames.xcstrings` in `PladderSystem`) are compiled by `swift build`; `bundle.sh` merges their `.lproj` folders into `Pladder.app/Contents/Resources`, so `Bundle.main` serves them and no code names a bundle. `swift run` shows English. Core and Engines emit enum cases; the app turns them into text. German first; more languages are catalog contributions | | Overlay look | Liquid Glass in the system's appearance, no setting for light or dark, flat or glass, or speed: Reduce Transparency, Increase Contrast and Reduce Motion (a fade in place, no flight, no pulse) do those jobs. Placed above the Dock (`visibleFrame`), and above the focused text field when it would cover it (docs/ARCHITECTURE.md, "The overlay"). Errors stay 4 s on two lines; errors and "Copied — press ⌘V" are announced to VoiceOver | Three settings of twelve thumbnails were the loudest surface in the app and duplicated system switches; the old `appearance`, `overlayGlass` and `overlayAnimationSpeed` keys are retired on save | | First launch | No settings file yet: Settings opens once, from the menu bar label, with missing permissions first and the model's download below; no system prompt at launch | The Accessibility prompt used to appear before the user had seen anything. Every grant is now asked for from a button beside a sentence saying what it is for | -| Recording cap | 10 min | Keeps the microphone from staying on when a key-up is lost. The cap ends a latched recording the same way | +| Recording cap | 10 min held, 60 min latched; at the cap the recording is transcribed and pasted as at a release | The held cap keeps the microphone from staying on when a key-up is lost. A latched recording has no key-up to lose, and ten minutes cut off dictations meant to be that long, so its cap only ends a forgotten latch. Whether a recording is latched is asked when the held cap is reached, because a hybrid key latches at its release. Sixty minutes holds about 230 MB of audio in FluidAudio's session until the release; the engine's own copy for the live pass keeps only the last window | | Benchmark | A script run by hand, not a test | A benchmark that fails on noise gets ignored | | CI paths | `ci.yml` runs on every push and pull request, and its Linux `changes` job starts `build-and-test` only when a path the build or the bundle reads changed, listed in it and in `release.yml`'s source check. Pull requests build and test; `main` also bundles. `docs.yml` and `scripts.yml` have no path filter. `ci.yml` restores the dependency checkouts and binary artifacts under `.build` from a cache only `main` writes, keyed by `Package.resolved`, but no compiled objects, which SwiftPM recompiles anyway; `release.yml` never uses it. A release with no change in those paths since the last tag needs `force` | A macOS minute costs ten Linux ones, and a docs or script change cannot change the build. GitHub counts a job skipped by its `if` as passed but leaves a workflow its paths filter skipped waiting, so all three checks can be required. The bundle is a second, release build that more than doubled a pull request's wait; on `main` a break in it still shows long before a release. The signing job builds without the cache, so nothing a cache holds reaches a signed app | @@ -106,13 +106,13 @@ swift run -c release pladder-cli polish-set docs/polish-set.json --model s1-mini - **Audio format.** The microphone delivers 48 kHz; the engine wants 16 kHz mono Float32. Conversion is isolated in `AudioResampler` and unit tested against synthesised buffers. - **First launch.** About 600 MB of CoreML models download from Hugging Face and compile on first load. The menu shows progress and the hotkey is disabled until the engine is ready. - **Cold latency.** The engine loads at launch and stays resident. The audio engine is prepared at launch and runs only while the key is held, so the system microphone indicator is off when idle. A cold encoder pass costs about 110 ms more than a warm one, which is more than every other stage together, so the coordinator warms the Neural Engine every two seconds while the key is held. A release that lands inside a warm pass waits for its CoreML call, inside `engine-time`; a wait in `feed`, or `engine` well above `engine-time`, is a window pass the release landed next to (docs/BENCHMARKS.md, "The release wait"). -- **Long recordings.** FluidAudio's encoder window is 15 s. Longer audio is split into windows and stitched, and seams can drop or duplicate words. Those windows now run while the key is held rather than at release, so the wait is flat with length, but the seam risk is unchanged: it is the same layout and the same merge. The paced benchmark guards it by requiring the text to be byte-identical to transcribing the whole recording at once, and the 30 s to 10 min fixtures watch the word error rate. +- **Long recordings.** FluidAudio's encoder window is 15 s. Longer audio is split into windows and stitched, and seams can drop or duplicate words. Those windows now run while the key is held rather than at release, so the wait is flat with length, but the seam risk is unchanged: it is the same layout and the same merge. The paced benchmark guards it by requiring the text to be byte-identical to transcribing the whole recording at once, and the 30 s to 10 min fixtures watch the word error rate. Nothing past 10 min is in the standard fixtures; a 60 min one was checked once (docs/BENCHMARKS.md, "Past ten minutes"). - **Polish latency and quality.** Apple's model takes about 1.5 to 2 seconds warm on an M1 for a typical dictation, S1-mini 0.3 to 0.5, and both are capped at eight, the model's load and every chunk of a long dictation included; past the cap the text is pasted as dictated. A small model can still rewrite rather than clean; for Apple's the guided `cleanedText` field, greedy sampling, inline examples and naming the transcript's language keep that rare. S1-mini's known slips are in docs/BENCHMARKS.md, the worst a German number word read wrong, which real dictation rarely feeds it since Parakeet writes digits. `pladder-cli polish-set` is where model and prompt changes are judged. - **Polish model memory.** S1-mini stays loaded while chosen and polish is on: about 0.8 or 1.5 GB of weights plus a 235 MB key-value cache for its 2,048-token context. Long dictations are polished in chunks of about 250 words to fit. - **Clipboard clobbering.** Output saves the pasteboard, pastes, and restores it once the target app has read the transcript. Nothing read within 8 s leaves the transcript on the clipboard that long, never stale text in the target. - **Permissions.** Accessibility and Microphone grants are keyed to the code signature. `bundle.sh` signs with a Developer ID certificate when one is in the keychain, else Apple Development; an ad-hoc signature changes on every build and resets both grants. A Developer ID grant is keyed to the team, an Apple Development one to the certificate's name, so a move between the two, such as from an Apple Development build to the DMG, asks for both once. - **Update signing key.** Every copy checks a DMG against the one `SUPublicEDKey` it was built with before opening it. A lost private key means no update reaches them; a leaked one means a new pair, shipped in a release signed with the old key. The private key is the `release` secret `SPARKLE_ED_PRIVATE_KEY`, in the maintainer's login keychain (account `pladder`) and in an offline copy (INSTALL.md, "Update signing key"). -- **Lost key-up.** When the 10 min watchdog fires, the coordinator transcribes and pastes as if the user had released. Discarding is probably the right behaviour; tracked separately. +- **Lost key-up.** When the 10 min watchdog fires on a held recording, the coordinator transcribes and pastes as if the user had released. Discarding is probably the right behaviour; tracked separately. ## Working on this Mac while Pladder is in use diff --git a/Sources/PladderCore/DictationCoordinator.swift b/Sources/PladderCore/DictationCoordinator.swift index ff35563..ca97bd1 100644 --- a/Sources/PladderCore/DictationCoordinator.swift +++ b/Sources/PladderCore/DictationCoordinator.swift @@ -63,6 +63,8 @@ public final class DictationCoordinator { public var minimumPolishWords = 4 // A key-up can be lost for real, e.g. while Secure Event Input hides keys from the tap. public var maximumDuration: Duration = .seconds(600) + // A latched recording has no key-up to lose; its cap only ends a forgotten latch. + public var latchedMaximumDuration: Duration = .seconds(3600) // Handy and VoiceInk use 300 to 500 ms. public var holdThreshold: Duration = .milliseconds(400) public var bounceWindow: Duration = .milliseconds(50) @@ -400,9 +402,14 @@ public final class DictationCoordinator { self.inputLevel = level } } - maxDurationTask = Task { [weak self, clock, maximumDuration] in + maxDurationTask = Task { [weak self, clock, maximumDuration, latchedMaximumDuration] in try? await clock.sleep(for: maximumDuration) guard let self, !Task.isCancelled, self.state.isRecording else { return } + // Asked at the held cap, not at the press: a hybrid key latches at its release. + if self.isLatched { + try? await clock.sleep(for: latchedMaximumDuration - maximumDuration) + guard !Task.isCancelled, self.state.isRecording else { return } + } // A lost key-up, not a release: never send a message unattended. self.hotkeyReleased(submit: false) } diff --git a/Sources/PladderCore/Learning/CorrectionDiff.swift b/Sources/PladderCore/Learning/CorrectionDiff.swift index 29d5b0e..7204757 100644 --- a/Sources/PladderCore/Learning/CorrectionDiff.swift +++ b/Sources/PladderCore/Learning/CorrectionDiff.swift @@ -11,7 +11,7 @@ public enum CorrectionDiff { // So a one- or two-word paste can still be corrected. static let rewriteAllowance = 2 // Past this the reading is skipped rather than a quadratic table built; a - // dictation near the 10 min cap can pass it, and then nothing is learned. + // dictation of ten minutes or more can pass it, and then nothing is learned. static let maximumCells = 4_000_000 public static func candidates(in observation: PasteObservation) -> [CorrectionPair] { diff --git a/Sources/PladderEngines/FluidAudioIncrementalEngine.swift b/Sources/PladderEngines/FluidAudioIncrementalEngine.swift index 06c4c00..635fa9d 100644 --- a/Sources/PladderEngines/FluidAudioIncrementalEngine.swift +++ b/Sources/PladderEngines/FluidAudioIncrementalEngine.swift @@ -57,8 +57,8 @@ public actor FluidAudioIncrementalEngine: StreamingTranscriptionEngine { private var manager: AsrManager? private var slot = UtteranceSlot() private var fedSampleCount = 0 - // Kept only for `livePass`; the session holds its own copy. 38 MB at the 10 min cap, - // dropped when the utterance ends. + // Kept only for `livePass`, trimmed to its last window or two; the session holds the + // whole recording. private var liveAudio: [Float] = [] private var loadTask: Task? @@ -171,6 +171,11 @@ public actor FluidAudioIncrementalEngine: StreamingTranscriptionEngine { guard !samples.isEmpty, let session = slot.session(for: utterance) else { return } fedSampleCount += samples.count liveAudio.append(contentsOf: samples) + // Only the last window is read; whole hops off the front leave its cut where it was. + if liveAudio.count > 2 * Self.maxWindowSamples { + let overflow = liveAudio.count - Self.maxWindowSamples + liveAudio.removeFirst((overflow / Self.windowHopSamples) * Self.windowHopSamples) + } // A window failing mid-recording must not take the dictation down: `finish()` still // runs the last window and merges what succeeded. try? await session.append(samples) diff --git a/Tests/PladderCoreTests/DictationCoordinatorTests.swift b/Tests/PladderCoreTests/DictationCoordinatorTests.swift index 8c577b8..79995fa 100644 --- a/Tests/PladderCoreTests/DictationCoordinatorTests.swift +++ b/Tests/PladderCoreTests/DictationCoordinatorTests.swift @@ -1263,7 +1263,7 @@ final class EventLog: @unchecked Sendable { await c.cancelRecording() } - @Test func theCapFiresInToggleMode() async { + @Test func aLatchedRecordingOutlastsTheHeldCap() async { let hotkey = FakeHotkey() let clock = ManualClock() let (c, output, _) = makeCoordinator(settings: hybridSettings(), hotkeyMonitor: hotkey, clock: clock) @@ -1273,7 +1273,13 @@ final class EventLog: @unchecked Sendable { hotkey.release() #expect(await waitUntil { c.isLatched }) #expect(await clock.waitForSleepers(2)) + let sleepers = clock.sleeperCount clock.advance(by: c.maximumDuration) + #expect(await waitUntil { clock.sleeperCount == sleepers }) + #expect(c.state.isRecording) + clock.advance(by: c.latchedMaximumDuration - c.maximumDuration - .seconds(1)) + #expect(c.state.isRecording) + clock.advance(by: .seconds(1)) await c.cycleFinished() #expect(output.inserted.count == 1) #expect(output.submitted == [false]) diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 030536d..2d59e90 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -63,7 +63,8 @@ its timers with `ManualClock`. drops that utterance itself and starts no loop. At release or cancel the session hands the coordinator what it ended with: the utterance or the whole buffer to transcribe, and the feed loop to wait for; -6. starts the level meter and the 10 minute cap. +6. starts the level meter and the cap: 10 minutes, or 60 if the recording + is latched by then. **Release** (`hotkeyReleased`). `endRecording()` stops everything the press started: the gesture tracker, the cancel key, the meter, the cap, the feed, @@ -690,7 +691,8 @@ that default. | 0.3 s | Shortest recording that is transcribed | `DictationCoordinator.minimumDuration` | `PladderCore/DictationCoordinator.swift` | | 4 words | Shortest dictation that is polished | `DictationCoordinator.minimumPolishWords` | `PladderCore/DictationCoordinator.swift` | | 10 words | Longest sentence pasted without its capital and period | `ShortSentence.maximumWords` | `PladderCore/Support/ShortSentence.swift` | -| 10 min | Recording cap | `DictationCoordinator.maximumDuration` | `PladderCore/DictationCoordinator.swift` | +| 10 min | Recording cap, held | `DictationCoordinator.maximumDuration` | `PladderCore/DictationCoordinator.swift` | +| 60 min | Recording cap, latched | `DictationCoordinator.latchedMaximumDuration` | `PladderCore/DictationCoordinator.swift` | | 100 ms | Feed loop cadence, and the chunk the paced bench feeds | `DictationCoordinator.defaultFeedInterval` | `PladderCore/DictationCoordinator.swift` | | 500 ms | Live pass cadence (Live Transcript) | `DictationCoordinator.livePassInterval` | `PladderCore/DictationCoordinator.swift` | | 2 s | Warm loop cadence | `DictationCoordinator.warmupInterval` | `PladderCore/DictationCoordinator.swift` | diff --git a/docs/BENCHMARKS.md b/docs/BENCHMARKS.md index 61a2372..2b57d4c 100644 --- a/docs/BENCHMARKS.md +++ b/docs/BENCHMARKS.md @@ -45,7 +45,7 @@ them. | 60s | 60 s | Chunked path. | | 2m | 2 min | A long dictation. | | 5m | 5 min | A very long dictation. | -| 10m | 10 min | The app's recording cap. Heats the chip, so it runs last. | +| 10m | 10 min | The app's cap for a held recording. Heats the chip, so it runs last. | 30 s through 10 min show whether engine time grows linearly with chunk count and whether accuracy degrades at chunk seams, which FluidAudio's own notes @@ -398,6 +398,26 @@ whole-buffer text from 30 s up, and its word error was 0.9 to 1.2 % from 60 s up where the batch path's was 0.0 to 0.2 %. That is why the fork's `IncrementalChunkProcessor` stays. +## Past ten minutes + +A latched recording runs up to 60 minutes, longer than any standard +fixture. Checked once on 2026-11-17 on the M1 (macOS 27.2), Parakeet Ultra, +with a 60m fixture made by joining the 10m one six times (3,789 s) and the +paced bench with its sleep taken out, so the audio was fed as fast as the +windows ran. Every window is still run before `endUtterance`, which is what +the timing needs; only the wall clock is shorter. + +| Fixture | Audio | `endUtterance` (median of 2) | WER | Identical whole-buffer | +|---|---:|---:|---:|---| +| 10m | 631 s | 0.179 s | 0.5 % | yes | +| 60m | 3,789 s | 0.206 s | 0.6 % | yes | + +Six times the audio leaves 27 ms more at release, the last window +and the merge over six times as many windows. The whole-buffer pass over the 60m fixture took 19.3 s, the wait +the incremental path saves. The CLI's peak footprint was 813 MB, with the +fixture itself and that whole-buffer pass in it. In the app the recording +holds about 230 MB in FluidAudio's session until the release. + ## Reading the app's release-to-paste log Every dictation logs one line with the total release-to-paste time, its diff --git a/docs/USAGE.md b/docs/USAGE.md index 5d5c6b3..6a80162 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -94,7 +94,7 @@ The 25 European languages Parakeet TDT v3 supports, including English, German, F ## Long dictations -Recordings stop at 10 minutes, so a lost key-up never leaves the microphone on; what was said up to then is pasted. Audio longer than 15 seconds is transcribed in overlapping windows while you are still speaking, so the wait after letting go stays the same. +A held recording stops at 10 minutes, so a lost key-up never leaves the microphone on; what was said up to then is pasted. A recording started with the hands-free key runs up to 60 minutes. Audio longer than 15 seconds is transcribed in overlapping windows while you are still speaking, so the wait after letting go stays the same. ## From the command line diff --git a/scripts/make-fixtures.sh b/scripts/make-fixtures.sh index c0639ef..29e630b 100755 --- a/scripts/make-fixtures.sh +++ b/scripts/make-fixtures.sh @@ -11,7 +11,7 @@ # RATE= speaking rate, default 175 # # Lengths: 10 s (one encoder window), 30 s, 60 s, 2 min, 5 min and 10 min (the -# app's recording cap). The script is read in +# app's cap for a held recording). The script is read in # sentence order, wrapping around for the long fixtures, until the estimated # duration reaches the target, so each file is a whole number of sentences. set -euo pipefail