v73: обрезка тишины (начало/конец) → WAV
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ async function transcribe(blob) {
|
||||
const tStart = performance.now();
|
||||
|
||||
const form = new FormData();
|
||||
form.append('file', blob, 'audio.webm');
|
||||
form.append('file', blob, blob.type === 'audio/wav' ? 'audio.wav' : 'audio.webm');
|
||||
form.append('model', 'whisper-large-v3');
|
||||
form.append('language', 'it');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user