require('dotenv').config();
const path = require('path');
const assemblyModule = require('../../services/modules/transcription-remote/assembly.js');

// Audio-Datei oder URL aus Kommandozeile, Standard: test.wav
const audioPath = process.argv[2] || './storage/audio/IMG_2978.wav';

(async () => {
  try {
    const transcript = await assemblyModule.run(audioPath);

    console.log('Transcription succesful');
    console.log('Transcript ID:', transcript?.id);
    console.log('Speaker labels:', transcript?.utterances?.length || 0);
  } catch (error) {
    console.error('Error in Transcription:', error?.message || error);
  }
})();
