set transcribe

de7de034814711c92e42650bdaa67ffc6bc20591

Risenafis <reverse.hierarchy@gmail.com>

Signed
1 files changed, +1 -1Showing whitespace changes
src/endpoints/speech.js+1 -1
@@ -40,7 +40,7 @@ router.post('/recognize', jsonParser, async (req, res) => {
4040 const pipe = await module.default.getPipeline(TASK, model);
4141 const wav = getWaveFile(audio);
4242 const start = performance.now();
4343 const result = await pipe(wav, { language: lang || null, task: 'transcribe' });
4444 const end = performance.now();
4545 console.log(`Execution duration: ${(end - start) / 1000} seconds`);
4646 console.log('Transcribed audio:', result.text);