Skip to content

Build your personal knowledge base with Trilium Notes

feat(desktop): keep echo cancellation on system audio (PoC)

Elian Doran88df75db5ce8
diff --git a/apps/desktop/src/services/transcription.ts b/apps/desktop/src/services/transcription.ts
index d1e38626ca..eeb0876393 100644
--- a/apps/desktop/src/services/transcription.ts
+++ b/apps/desktop/src/services/transcription.ts
@@ -225,7 +225,7 @@ function pipe(source, media) {
async function captureSystemAudio() {
const media = await navigator.mediaDevices.getDisplayMedia({
video: true,
- audio: { echoCancellation: false, noiseSuppression: false, autoGainControl: false }
+ audio: { echoCancellation: true, noiseSuppression: true, autoGainControl: false }
});
for (const track of media.getVideoTracks()) {
track.stop();