feat: implement Whisper transcription engine and project documentation

This commit is contained in:
Ümit Tunç
2026-04-23 08:56:57 +03:00
parent 0c46962cac
commit c22075e8aa
16 changed files with 891 additions and 120 deletions
+5 -1
View File
@@ -2,7 +2,11 @@
const electron = require("electron");
const preload = require("@electron-toolkit/preload");
const api = {
windowControls: (action) => electron.ipcRenderer.send("window-controls", action)
windowControls: (action) => electron.ipcRenderer.send("window-controls", action),
startTranscription: (filePath, options) => electron.ipcRenderer.invoke("start-transcription", { filePath, options }),
onTranscriptionProgress: (callback) => electron.ipcRenderer.on("transcription-progress", (_, progress) => callback(progress)),
onTranscriptionData: (callback) => electron.ipcRenderer.on("transcription-data", (_, data) => callback(data)),
detectHardware: () => electron.ipcRenderer.invoke("detect-hardware")
};
if (process.contextIsolated) {
try {