Files
video2document/services/modules/transcription/remote/assembly_AI/assembly.test.js
T
2025-11-13 17:34:22 +01:00

15 lines
424 B
JavaScript

import 'dotenv/config';
import assemblyModule from './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);
});