From ed949289531f2891b5f1778ae3bbffb41ee2009c Mon Sep 17 00:00:00 2001 From: Emily Date: Fri, 5 Dec 2025 16:45:39 +0100 Subject: [PATCH] removed the need to send the transcription module defined audio output format to the frontend, and handle it on the backend instead --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index c9d14a8..8e0625d 100644 --- a/main.js +++ b/main.js @@ -95,7 +95,7 @@ electron.ipcMain.handle('get-module-names', async () => { module_array.ai_modules.push({"name": e.name, "displayname": e.displayname}) break; case "transcription": - module_array.transcription_modules.push({"name": e.name, "displayname": e.displayname, "audioformat":e.audioformat}) + module_array.transcription_modules.push({"name": e.name, "displayname": e.displayname}) break; } }) @@ -141,7 +141,7 @@ electron.ipcMain.on("file_submit", async (event, args) => { console.log("\n\n Running the Video to Audio Extractor"); // This code handles the Video to Audio extraction module call - await mapFunctions.get("module-handler").function(args.video.module, {inputVideoPath: args.video.inputVideoPath, outputType: args.video.outputType}).then(resp => { + await mapFunctions.get("module-handler").function(args.video.module, {inputVideoPath: args.video.inputVideoPath, outputType: mapFunctions.get(args.transcription.module).audioformat}).then(resp => { console.log(resp); audiopath = resp curstep++