Add an opt-in Apple Speech live preview for on-device Parakeet batch recordings
Summary
Context: When on-device Soniqo resolves a meeting to batch mode (the Parakeet Batch model, or a language or platform the streaming model does not cover), the Transcript tab stays empty until the meeting ends. Separately, every swift-rs bridge used the target name swift-lib, so all of them compiled into one Swift module name (swift_lib). With Soniqo and Apple Speech linked into the same binary, their private types mangled to the same symbols, the linker merged the weak outlined copy/destroy helpers, and Apple Speech's live start could release a payload with Soniqo's layout (EXC_BAD_ACCESS in swift_bridgeObjectRelease).
Intention: Let people see what is being said during an on-device batch recording without changing which model writes the final transcript, and make Apple Speech safe to run next to Soniqo.
Direction:
- Each swift-rs package now has its own target (module) name (
TccBridge,SoniqoBridge,AppleSpeechBridge,LocalLlmBridge,DictationUiBridge,InterceptBridge,NotificationBridge). Product and package names are unchanged, so theSwiftLinkercalls inbuild.rskeep working; the two Swift test targets import the new module names. - New
SessionParams::live_preview: the live transcript is only a preview that a batch pass replaces. When its local live listener fails, the session degrades to batch fallback instead of stopping the recording. - New setting
live_preview_apple_speech(Settings > Meetings > Audio, macOS only, off by default, labeled experimental). When on, a capture that resolves to Soniqo batch mode streams the meeting's main language through Apple Speech instead. It only kicks in when the recording is kept and the Parakeet batch model covers the meeting languages, so the final pass can always run. If Apple Speech or the language's assets are not ready, the capture stays in batch mode and the asset download starts for a later meeting. - When such a capture ends, the app runs the existing re-transcription path (
Uploads::retranscribe) on the saved recording with the selected Parakeet model. That replaces the preview and then requests the automatic summary, as a normal re-transcription does.
Demo
Screenshots to be attached by the author before review (new switch in Settings > Meetings > Audio).
Verification
swift buildfor the renamed tcc, Apple Speech, intercept and local-llm packages, plusswift testforcrates/dictation-ui-macos/swift-libandcrates/notification-macos/swift-lib(Apple Silicon, Xcode 27): pass.- New regression tests:
live_preview_listener_failure_keeps_recording(listener-core supervisor) andapple_speech_preview_only_stands_in_for_a_kept_soniqo_batch_recording(desktop-gpui meeting tests). - From
apps/desktop-gpuion Apple Silicon:cargo test --locked --lib -- meeting::tests product:: workspace::contacts(448 passed, 1 ignored),cargo test --locked --test a11y(23 passed),cargo clippy --locked --workspace --all-targets --no-deps -- -D warnings(clean). The first run had one failure inproduct::preferences_view::tests::camera_section_hides_when_unavailable_and_persists_prefs_when_bundled, which passed on rerun and touches nothing in this change (looks flaky). cargo test --locked -p listener-core --lib supervisor(22 passed). Run with the 1.98.1 toolchain, because the repository's pinned 1.94.0 could not load proc-macro dylibs on that machine (Xcode 27).- The full
cargo test --locked --workspacewas not run. dprint checkon the changed JSON, .po and Package.swift files.cargo fmt --checkinapps/desktop-gpui.- Not tested in a live meeting: the Apple Speech stream, the re-transcription after stop and the summary that follows were not run end to end with real audio.
- Known limitation: if the final pass fails (for example the recording is missing), the preview words stay and the usual "Re-transcription failed" toast shows; no automatic summary is requested in that case.
- Today Parakeet Streaming and Parakeet Batch claim the same language list, so the preview mostly applies to Parakeet Batch and to Macs where the streaming model cannot run. A follow-up could treat the streaming model as English-only, since Parakeet-EOU-120M has no language hint; then non-English Parakeet meetings would also get the preview.
🤖 Generated with Claude Code
Summary by cubic
Adds an opt-in Apple Speech live preview for on-device Parakeet batch recordings, and fixes a Swift symbol collision between Soniqo and Apple Speech.
New Features
- With the experimental
live_preview_apple_speechsetting (Settings > Meetings > Audio, macOS, off by default), a batch-mode capture streams the meeting's main language through Apple Speech as a preview. - After capture, the saved recording is re-transcribed with the selected Parakeet model, which replaces the preview and then requests the automatic summary.
- The preview only applies when the recording is kept and the Parakeet batch model covers the meeting languages; if Apple Speech is not ready, the capture stays in batch mode and the language asset download starts for a later meeting.
Bug Fixes
- Each swift-rs bridge now has its own Swift module name; they previously all compiled to
swift_lib, and the linker merged Soniqo and Apple Speech symbols, causingEXC_BAD_ACCESSinswift_bridgeObjectRelease. - A failing live listener no longer stops a live-preview capture; it degrades to batch fallback so the recording the final pass needs keeps going.
SessionParams::live_previewdefaults to false, so existing captures behave as before.