Try fixing bad live transcription performance.

This commit is contained in:
Lucas Winther
2026-07-10 11:43:29 +02:00
parent db7b8a22c4
commit 2dff7512ac
3 changed files with 15 additions and 12 deletions
+3
View File
@@ -297,6 +297,9 @@ export function App() {
// live. `.en` models take neither (same rule as the file flow).
const options = (getModel(modelId)?.multilingual ?? false) ? { language, task } : {};
const transcriber = new LiveTranscriber({
tentativeIntervalMs: 2500,
minTentativeSeconds: 2.0,
segmenter: { commitSilenceSeconds: 2.5, maxSegmentSeconds: 29 },
transcribe: (audio) => transcribeLiveSegment(worker, audio, options),
onUpdate: (update) => {
setLiveCommitted(update.committedText);