mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-15 18:01:52 +02:00
15 lines
466 B
JavaScript
15 lines
466 B
JavaScript
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);
|
|
});
|