import { processAudioFile } from './audio-processor';
import path from 'path';

async function runTest() {
  try {
    console.log("Starting audio processing test...");
    
    // Test file path
    const filePath = path.join(process.cwd(), 'uploads', '1.mp3');
    
    // Use session ID 1 for testing
    const sessionId = 1;
    
    console.log(`Processing file: ${filePath}`);
    await processAudioFile(sessionId, filePath);
    
    console.log("Test completed successfully");
  } catch (error) {
    console.error("Test failed:", error);
    process.exit(1);
  }
}

// Run the test
runTest();
