Implemented local transcription solution with starting scripts

This commit is contained in:
MikeHughes-BIN
2025-11-06 09:58:28 +01:00
parent 029f40057a
commit 9902b0421e
7 changed files with 148 additions and 42 deletions
+18
View File
@@ -0,0 +1,18 @@
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);
}
})();