diff --git a/main.js b/main.js index 63e4c2b..fa33871 100644 --- a/main.js +++ b/main.js @@ -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++ @@ -196,6 +196,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) { console.log(error); diff --git a/package-lock.json b/package-lock.json index bf45f52..fed27e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -299,7 +299,6 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-24.9.2.tgz", "integrity": "sha512-uWN8YqxXxqFMX2RqGOrumsKeti4LlmIMIyV0lgut4jx7KQBcBiW6vkDtIBvHnHIquwNfJhk8v2OtmO8zXWHfPA==", "license": "MIT", - "peer": true, "dependencies": { "undici-types": "~7.16.0" } @@ -2531,7 +2530,6 @@ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "dev": true, "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/services/modules/transcription-remote/assembly.js b/services/modules/transcription-remote/assembly.js index 3b02e4c..5819a3c 100644 --- a/services/modules/transcription-remote/assembly.js +++ b/services/modules/transcription-remote/assembly.js @@ -89,6 +89,7 @@ module.exports = { name: 'assembly', type: 'transcription', displayname: 'AssemblyAI', + audioformat: "mp3", async function(audioFileName) { return new Promise(async (resolve, reject) => {