From e661aefbe8fb48eb774866be00bf29cd27c90748 Mon Sep 17 00:00:00 2001 From: Emily Date: Fri, 5 Dec 2025 17:09:45 +0100 Subject: [PATCH] added json to send to frontend for the speaker naming functionality --- main.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/main.js b/main.js index 8e0625d..0510187 100644 --- a/main.js +++ b/main.js @@ -194,6 +194,24 @@ electron.ipcMain.on("file_submit", async (event, args) => { }) } + // TODO actually implement this functionality + // Module to get the first few lines for each speaker to send to the frontend +// await mapFunctions.get("speaker-getter-idfk").function(transcriptpath).then(resp => { +// console.log(resp); +// transcriptpath = resp +// curstep++ +// mainWindow.webContents.send("progress", {curstep:curstep, totalsteps:totalsteps}) + +// // { +// // speakerA: {source: "Pfad zur Audio File"}, +// // speakerB:..... +// // } + mainWindow.webContents.send("speakers", {speakerA:"pfad1", speakerB:"pfad2"}) +// }).catch(err => { +// mainWindow.webContents.send("error", err) +// return +// }) + } catch (error) { console.log(error);