import { whisperLocal } from "../services/modules/transcription/local/whisperLocal.ts"; const audioPath = process.argv[2]; if (!audioPath) { console.error("Please provide an audio file path as argument."); process.exit(1); } const whisper = new whisperLocal(); (async () => { try { const text = await whisper.transcribe(audioPath); console.log(text); } catch (err) { console.error("Transcription failed:", err); } })();