mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-15 18:01:52 +02:00
added json to send to frontend for the speaker naming functionality
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user