import 'dotenv/config';
import assemblyModule from '../../services/modules/transcription-remote/assembly.ts';

// Test: URL passed as argument OR local file ./storage/audio/test.wav
const audioPath = process.argv[2] || './storage/audio/test.wav';

assemblyModule.run(audioPath)
  .then(result => {
    console.log('✅ Success!');
    console.log('Transcript ID:', result.id);
  })
  .catch(error => {
    console.error('❌ Error:', error?.message || error);
  });
