Merge pull request #2497 from Risenafis/set-transcribe Do not translate randomly in /api/speech/recognize

af7f0b607d750d5a5107655aec35eaf27623d446

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
1 files changed, +1 -1Ignore whitespace
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);