SmartSilencer

版本 v1.1.1·更新於 2026-09-22

Auto-mutes Valheim while music or a video plays in another program, or while the game is not the window in front. Each trigger has its own switch.

模組介紹 作者原文

Smart Silencer

The game goes quiet, by itself, while something else has your ears.

Put on Spotify and Valheim's sound fades out. Pause it and the game fades back in. Same when a YouTube video starts in your browser, and same when you tab out to another window. Nothing is paused and nothing else changes: the world keeps running, your volume settings stay as they were, and the moment you are back to it the sound is too.

What you get

Three triggers, each with its own switch, all on by default:

  • Music Playing. A music player is making sound: Spotify, Apple Music, iTunes, MusicBee, foobar2000, Winamp, AIMP, TIDAL, Deezer, Amazon Music and a few more, in an editable list.
  • Video Playing. A video player is making sound: any browser (Chrome, Edge, Firefox, Brave, Opera, Vivaldi, Arc,...), VLC, mpv, MPC, PotPlayer, Netflix, Plex, Kodi and the Windows video apps. Browsers are in this list because a browser is how most people watch anything.
  • Game Not Focused. Another window is in front.

And a fourth, off by default:

  • Other Apps Playing. Any other program is making sound, apart from an ignored list (Discord, Teams, Zoom, Slack, Steam, Windows itself). Off so a voice call or a notification does not silence the game.

Two more, also off by default:

  • Game Paused. The game is paused: the ESC menu in single player, or a pause granted by PauseMyServer on a server. The ESC menu on a server does not pause, so it does not count.
  • Main Menu. You are on the main menu, before a world is loaded and after leaving one.

While any trigger holds, the game's sound fades down to Quiet Volume (silent by default) over a short fade, and fades back up when none does. A short top-left message says which program it went quiet for, and when the sound came back.

Music and video are detected the same way the Windows volume mixer shows a moving level bar next to each program: Smart Silencer reads those per-app level meters a few times a second. So it knows the difference between Spotify being open and Spotify actually playing, and it needs no plug-in, account or browser extension. It does not know what a browser is playing, only that it is playing something.

Switching it on and off

  • In the config, with a mod manager's config editor or the in-game Configuration Manager (F1). Every setting takes effect immediately; no restart.
  • A hotkey (Toggle Key) flips the master switch while playing. It is empty by default, since every plain key already does something in Valheim; a combination such as LeftControl + F9 is a safe pick.
  • The console (F5): silencer shows the state, silencer on and silencer off flip the master switch, silencer music off (or video, other, focus, paused, menu) flips one trigger, and silencer apps lists every program that has an audio session right now, with its level and how Smart Silencer classifies it. That last one is how to find the name to put in a list when something is not detected, or is detected and should not be.

Configuration

BepInEx/config/DeathMonger.SmartSilencer.cfg:

| Setting | Default | What it does |

| --- | --- | --- |

| Mod Enabled | true | Master switch, and what the hotkey flips. |

| Toggle Key | (none) | Hotkey for the master switch. |

| Show Messages | false | Top-left messages on going quiet and coming back. Handy for confirming it works. The hotkey's on/off confirmation always shows. |

| Log Transitions | false | Also write those transitions to the BepInEx log. Handy for confirming it works, noise afterwards. |

| Quiet Volume | 0 | The game's volume while silenced, 0 to 1. 0.2 keeps it faintly there under the music. |

| Fade Out Seconds | 0.4 | How long the sound takes to go down. |

| Fade In Seconds | 0.8 | How long it takes to come back. |

| Music Playing | true | Trigger on programs in the Music Apps list. |

| Video Playing | true | Trigger on programs in the Video Apps list. |

| Other Apps Playing | false | Trigger on any other program not in Ignored Apps. |

| Game Not Focused | true | Trigger when anoth

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
SmartSilencer-1.1.1.zip
檔案大小
46.5 KiB