Commit Graph
4 Commits
Author SHA1 Message Date
ddidderr 4d7fcb1c8f feat: support create subtitles (.srt) 2026-09-05 16:14:16 +02:00
ddidderr ca08ad34bc feat: use 1password for API key 2026-09-05 16:14:02 +02:00
ddidderr a2c8502c61 feat: encode audio as 64 kbps MP3 instead of WAV
Convert the normalized audio to mono 16 kHz MP3 at 64 kbps with
FFmpeg's libmp3lame encoder instead of uncompressed WAV. This reduces
request payload size before base64 encoding and submitting to OpenRouter.
Update README documentation accordingly.
2026-09-05 15:16:56 +02:00
ddidderr e6b36c2b48 feat: add simple audio transcription command
Convert audio and video audio tracks to mono 16 kHz WAV with FFmpeg,
then submit them to OpenRouter's MAI-Transcribe-2 endpoint. Read the API
key from the environment and print the transcript to stdout for easy
redirection. Store request payloads in temporary files to avoid shell
argument size limits, and document dependencies and usage.

Test Plan:
- bash -n transcribe and shellcheck transcribe passed.
- All eight documented formats passed local FFmpeg conversion and mocked
  API request/response checks, including WAV rate and channel validation.
- git diff --cached --check passed.
- No live API request was made.
2026-09-05 11:40:26 +02:00