feat: implement electron-based audio transcription service with whisper integration and srt processing

This commit is contained in:
Ümit Tunç
2026-04-23 10:00:41 +03:00
parent 3f1f4f4608
commit e267fca6cb
4 changed files with 65 additions and 12 deletions
+5 -1
View File
@@ -7,7 +7,11 @@ const api = {
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"),
openExplorer: (path) => electron.ipcRenderer.send("open-explorer", path)
openExplorer: (path) => electron.ipcRenderer.send("open-explorer", path),
readSrt: (filePath) => electron.ipcRenderer.invoke("read-srt", filePath),
saveSrt: (filePath, content) => electron.ipcRenderer.invoke("save-srt", { filePath, content }),
selectFile: (filters) => electron.ipcRenderer.invoke("select-file", filters),
optimizeSrt: (filePath) => electron.ipcRenderer.invoke("optimize-srt", filePath)
};
if (process.contextIsolated) {
try {