mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
feat: warn when shared tab/system audio stays silent
Windows system audio only covers the default playback device, so music on another device is mixed in as pure silence with no hint why. 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
5268c8f57a
commit
9d736dbfdd
6 files changed
+17
-1
No files matched your search
@@ -8735,6 +8735,12 @@ function AppInner() {
|
||||
tabAudioRef.current = stream;
|
||||
micCaptureRef.current?.setExtraAudio(stream);
|
||||
setTabAudioOn(true);
|
||||
// Windows system audio only covers the default output device; music on
|
||||
// another device arrives as pure silence, with nothing else to tell why.
|
||||
setTimeout(() => {
|
||||
if (tabAudioRef.current === stream && micCaptureRef.current && micCaptureRef.current.extraPeak < 1e-4)
|
||||
appendLog({ text: t("tabAudio.silent"), kind: "error" });
|
||||
}, 5000);
|
||||
};
|
||||
|
||||
const handleToggleMicTest = () => {
|
||||
|
||||
Reference in new issue
Block a user