removed the need to send the transcription module defined audio output format to the frontend, and handle it on the backend instead

This commit is contained in:
2025-12-05 16:45:39 +01:00
parent 8adf470f18
commit ed94928953
+2 -2
View File
@@ -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++