mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
fix: shared tab/system audio arrived silent in Edge
Edge ran its echo canceller on the display-capture track (getSettings showed echoCancellation: true on deviceId "loopback"), which subtracts exactly what the speakers play - the whole signal. Voice processing is now off for that track; noise suppression would mangle music anyway. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
fa3fa2e4ad
commit
93b809ff9a
1 file changed
+7
-1
+7
-1
@@ -8722,7 +8722,13 @@ function AppInner() {
|
||||
// Browsers only offer audio together with a video capture. The video
|
||||
// track stays alive (at 1 fps) until sharing stops: stopping it right
|
||||
// away may end or silence the capture session the audio belongs to.
|
||||
stream = await navigator.mediaDevices.getDisplayMedia({ video: { frameRate: 1 }, audio: true });
|
||||
// Edge applies voice processing to the capture by default: echo
|
||||
// cancellation then subtracts exactly what the speakers play, so
|
||||
// Windows system audio arrives as pure silence (measured: peak 0).
|
||||
stream = await navigator.mediaDevices.getDisplayMedia({
|
||||
video: { frameRate: 1 },
|
||||
audio: { echoCancellation: false, noiseSuppression: false, autoGainControl: false },
|
||||
});
|
||||
} catch {
|
||||
return; // picker cancelled
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user