added json to send to frontend for the speaker naming functionality

This commit is contained in:
2025-12-05 17:09:45 +01:00
parent ed94928953
commit e661aefbe8
+18
View File
@@ -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) { } catch (error) {
console.log(error); console.log(error);