working on implementing everything

Currently getting stuck on the assembly module as assembly ai for some fucking reason blocks me from making any requests
This includes making a new user account
This commit is contained in:
2025-11-24 15:35:32 +01:00
parent 34d644d7d7
commit 812bca8cfb
7 changed files with 169 additions and 46 deletions
@@ -1,6 +1,4 @@
require('dotenv').config();
const API_KEY = process.env.API_KEY;
const API_KEY = process.env.ASSEMBLYAI_API_KEY;
const BASE_URL = 'https://api.assemblyai.com/v2';
//---------------------------------------------------Upload audio---------------------------------------------------
@@ -93,11 +91,7 @@ module.exports = {
async function(audioFileName) {
try {
// audioFileName ist nur "datei.mp3"
const audioPath = path.join(
__dirname,
'../../../storage/audio',
audioFileName
);
const audioPath = audioFileName;
let audioUrl;
+2 -2
View File
@@ -6,9 +6,9 @@ module.exports = {
// We are now calling the example function from the example folder
mapFunctions.get("example").function("Startup")
let transcript = await mapFunctions.get("assembly").function('../../storage/audio/IMG_2978.wav');
// let transcript = await mapFunctions.get("assembly").function('../../storage/audio/IMG_2978.wav');
let summary = await mapFunctions.get("summarize-transcription").function({jsonPath:'/Users/santa/Proj25/video2document/storage/transcripts/IMG_2978.json'});
// let summary = await mapFunctions.get("summarize-transcription").function({jsonPath:'/Users/santa/Proj25/video2document/storage/transcripts/IMG_2978.json'});