From 0ea605cc0c381cb9fcd45abfc9cc63793ba8088c Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Thu, 26 Feb 2026 23:06:43 -0500 Subject: [PATCH] Complete history.md with Phase 9: Server Ingest --- history.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/history.md b/history.md index 597eb02..edddc24 100644 --- a/history.md +++ b/history.md @@ -71,5 +71,12 @@ The project now features a high-performance, Apple Silicon-optimized pipeline th chmod +x build.sh ./build.sh ``` -- **Troubleshooting:** Fixed a runtime `ModuleNotFoundError: No module named 'mlx._reprlib_fix'` by explicitly adding `--collect-all mlx` and `--hidden-import=mlx._reprlib_fix` to the PyInstaller configuration. -- **Outcome:** A standalone `whisper-transcribe` binary in the `dist/` directory. +- **Troubleshooting:** Fixed a runtime `ModuleNotFoundError: No module named 'mlx._reprlib_fix'` by explicitly adding `--collect-all mlx` and `--hidden-import=mlx._reprlib_fix` to the PyInstaller configuration. Also added `multiprocessing.freeze_support()` to fix infinite loops in the compiled binary. + +## Phase 9: Real-Time Server Ingest +- **Goal:** Send live captions and translations to a central ingest server. +- **Backend:** `https://emiapi.reynafamily.com/live-captions/ingest`. +- **Approach:** + - Implemented a background `ingest_worker` thread to handle HTTP POST requests without stalling the audio processing. + - **Flat JSON Schema:** Used a key-value format as requested (e.g., `original`, `es`, `en`, `fr`). + - **Reliability:** Integrated exponential backoff retries (1s to 15s) to handle network or server failures.