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
+1 -1
View File
@@ -131,7 +131,7 @@ export async function startMicCapture(
audio: { echoCancellation: true, noiseSuppression: true, autoGainControl: true },
});
const context = new AudioContext();
const context = new AudioContext({ sampleRate: TARGET_SAMPLE_RATE });
// Contexts created outside a user gesture start suspended; the start button
// click satisfies the gesture requirement, so this resolves immediately.
await context.resume().catch(() => {});