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++