Skip to content

Add offline transcription CLI - #10

Draft
alexandriax wants to merge 1 commit into
FrigadeHQ:mainfrom
alexandriax:codex/add-offline-transcription-cli
Draft

Add offline transcription CLI#10
alexandriax wants to merge 1 commit into
FrigadeHQ:mainfrom
alexandriax:codex/add-offline-transcription-cli

Conversation

@alexandriax

Copy link
Copy Markdown

Summary

  • add a YapCLI target that transcribes audio files or the default microphone
  • keep final text on stdout, with optional file output, locale selection, timed recording, and installed-locale discovery
  • require an already-installed SpeechTranscriber model; the CLI never invokes AssetInstallationRequest and never falls back to SFSpeechRecognizer
  • document source installation and add focused argument-parser tests

Why

This follows up on the Hacker News request for a scriptable, fully on-device interface. It makes Yap's Apple Speech transcription useful from shell scripts while retaining a strict offline execution path.

Examples

yap meeting.m4a
yap record
yap record --duration 30 > transcript.txt
yap transcribe interview.wav --locale en-US --output interview.txt
yap locales

Validation

  • xcodebuild -project Yap.xcodeproj -scheme YapCLI -destination 'platform=macOS' test (11 tests)
  • xcodebuild -project Yap.xcodeproj -scheme Yap -destination 'platform=macOS' test (22 existing tests)
  • Release build using the README command
  • end-to-end file transcription using a locally synthesized AIFF
  • end-to-end one-second microphone transcription

@christianmat

Copy link
Copy Markdown
Contributor

Thanks for picking up the CLI request from HN. It is on my radar. Since it adds a whole new target I want to take it deliberately rather than fold it into a release, so no rush while it is still a draft. I will come back to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants