Try fixing bad live transcription performance.
This commit is contained in:
1 parent
db7b8a22c4
commit
2dff7512ac
3 files changed
+15
-12
No files matched your search
+1
-1
@@ -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(() => {});
|
||||
|
||||
Reference in new issue
Block a user