feat(transcription): add drag-and-drop file transcription tab - #5
Merged
Merged
Conversation
Add a "Transcribe" tab for importing audio/video files via drag-and-drop or the file picker, transcribing them with the currently selected model. Adapted from kitlangton#232 for this fork's dual-engine setup. - Works with every engine. WhisperKit and Parakeet batch use the existing file-based transcribe; the Nemotron streaming model gains a one-shot transcribeFile path that feeds the whole file through the streaming manager (process(audioBuffer:) + finish()) in ~5s blocks. TranscriptionClient routes streaming models here instead of rejecting file-based transcribe. - Per-job progress: determinate percentage + bar for the Nemotron file path (real framesFed/total), indeterminate bar for batch engines that don't expose a decode fraction, plus a live elapsed timer for every job. - Multi-file import, per-job copy/remove, Clear Finished, and clear errors for unsupported or silent files. Imported transcripts save to History (preserving the original file extension) when history is enabled. Part of the Nemotron streaming integration (kitlangton#236). Verified: Debug build succeeds and HexCore swift test passes (62 tests, 5 suites); file transcription runtime-tested across engines with live progress. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A new Transcribe tab: import audio/video files by drag-and-drop or file picker and transcribe them with the currently selected model. Adapted from kitlangton#232 for this fork's dual-engine (batch + streaming) setup.
Works with every engine
The reference PR sent all files through
transcription.transcribe(url:...), but this fork's Nemotron streaming model rejects file-based transcribe (it decodes live). So:transcribe.NemotronStreamingClient.transcribeFile(...)one-shot path: feeds the whole file through the streaming manager (process(audioBuffer:)+finish()) in ~5s blocks.TranscriptionClient.transcribe(url:)now routes streaming models here instead of throwing.The feature calls one unified
transcribe(url, model, ...)for all three engines - no engine special-casing in the UI.Per-job progress + elapsed time
framesFed/totalfrom the block-feed loop).M:SS), frozen at the final value on completion.Also
Testing
Both pass (build clean; 62 tests / 5 suites). Runtime-verified across all three engines with live progress + elapsed timer.
Changeset
.changeset/81d5e24d.md(minor).