• Stars234+104 tuần này
  • Forks1
  • Watchers0
  • Issues0
  • Ngày tạo25/09/2026
  • Cập nhật gần nhất20/11/2026
  • Ngôn ngữPython
  • Giấy phép—
README.md29.1 KBRaw

Tern: ⌘F for your video archive

Tern

Local search for podcast and video archives.
Find any moment by what was said, what was on screen, or what was in the frame, on-device, on Apple Silicon.

CI macOS 14+, Apple Silicon Python 3.11 Tauri 2 All rights reserved

3 search channels
speech · on-screen text · picture
On-device
no media leaves the Mac
539 tests
pipeline · API · licence rules
5 export formats
MP4 · MP3 · SRT · CSV · FCPXML

Typing "butterfly" finds the shot in Big Buck Bunny from the picture alone, then the out-point is dragged and the clip grows from 8.0 s to 12.5 s

Visual search: no transcript and no filename to match, only the frame. The clip is then trimmed in place, ready to export.

Contents

What it does

Point Tern at a folder of audio, video and photos. It indexes every file three ways and answers a query from all three at once:

  • Speech. whisper.cpp (Whisper Large v3 Turbo, Q5) transcribes every file, with word-level timestamps. Silero VAD marks the speech regions, and segments Whisper produces outside them are dropped, because Whisper hallucinates text on silence.
  • On-screen text. Apple Vision reads every video keyframe and every image, through a small Swift sidecar.
  • The picture itself. SigLIP-2 embeds every keyframe, so you can describe what you remember seeing rather than what the file was called.

Results from all three are fused into one ranked list. A moment that matches on more than one channel ranks higher and is badged as a multi-channel hit. A trim editor exports any hit as MP4 or MP3; SRT subtitles, CSV and an FCPXML timeline for Final Cut Pro export from the result list.

Media and the index never leave the Mac: transcription, OCR and embedding all run locally. The network is used to fetch the models on first use (the Hugging Face library also revalidates its cached copy when it loads one), to activate a licence, for the update check, and to open Apple Maps when you click a photo's location.

Searching "hurricane" across NASA footage: the burned-in caption and the narration match the same moments, so the top hits are badged On-screen + Speech

hurricane against NASA footage: the caption burned into the video and the narration match the same moments, so the hits are badged On-screen + Speech.

Nội dung README thuộc về B0yko và cộng đồng đóng góp, giấy phép Không có giấy phép. Nguồn: github.com/B0yko/tern