8 Commits

Author SHA1 Message Date
Adolfo Reyna 80f0bf309f feat: Apple Speech v3 + Freeflow polish + draft streaming
- Apple SpeechAnalyzer (macOS 26+) binary: --bench (31x RTF), --pipe
  (persistent process, 150ms finals), --live (word-by-word drafts)
- Pipe protocol: 4-byte BE length + wav payload, emits JSONL
  {event:draft|final, text, isFinal, chunk} — 31 drafts for 6s audio (~60ms granularity)
- engine_apple_transcribe.py: ApplePipeTranscriber with
  transcribe() + transcribe_with_draft_callback(), VAD + draft
  queue, new flags --apple-stream (on), --apple-stream-interval,
  --apple-pipe (on). Fixes PIL/transformers import crash by lazy import.
- main_v3.py: engine selector {whisper,apple}, passthrough translate
  when no -es/-fr/-ar, freeflow flags same as v2
- Freeflow polish: deterministic punctuation commands (comma,
  question mark, new paragraph, at sign), filler stripping,
  <keep> protection, skip-clean heuristic, freeflow/qwen/legacy
  prompt styles. Much better final readability vs raw Apple/Whisper.
- main_v2.py, engine_llm.py, engine_distribute.py: integrate freeflow
- bench: Apple 2.12% WER vs Whisper Small 3.74% (Inscribe), CPU
  0mW ANE (measured via powermetrics), 196M EN cryptex per locale.
- Verified: 31 word-by-word drafts, 2 finals, exit 0, bench regression ok.

Freeflow still much better for final polish — Apple wins on speed
and raw accuracy, freeflow wins on readable paragraph output.

Co-authored-by: internal-model
2026-07-13 21:08:18 -04:00
Adolfo Reyna 7da02a9697 Add LLM logging and prompt experiment harness 2026-03-17 11:13:22 -04:00
Adolfo Reyna 8f6d2a0303 feat: add multi-channel support and language filtering to focus on specific speakers 2026-03-01 11:39:03 -05:00
Adolfo Reyna 00231cc747 feat: add hallucination detection and watchdog for stuck transcriptions 2026-03-01 11:15:59 -05:00
Adolfo Reyna 018539d41b feat: parameterize min silence duration and increase default to 1000ms 2026-02-28 19:40:23 -05:00
Adolfo Reyna ce4809a2b7 feat: implement prompt caching (-c) and source language bypass (--lang) 2026-02-28 19:21:16 -05:00
Adolfo Reyna 6f60d49c7b feat: implement streaming mode (-s) and 4-bit quantization (-q) for performance 2026-02-28 19:00:56 -05:00
Adolfo Reyna 3c874c113c feat: add command-line arguments for lang selection, ingest toggle, and device management; add README and requirements 2026-02-28 18:55:37 -05:00