R.E.P.O.
Install with App

Details

Latest version
1.0.0
Last Updated
First Uploaded
Downloads
543
Likes
3
Size
155KB
Dependants

Repo Noise Suppression

Real-time AI microphone noise suppression (Xiph RNNoise) for R.E.P.O. in-game proximity voice chat. Suppresses mechanical keyboard clacks, mouse clicks, PC fan noise, air conditioning, and ambient hum while keeping human speech natural—similar to Discord's Krisp, running 100% offline inside the game client.

Features

  • Genuine RNNoise Neural Inference (Not a Simple Volume Gate)
    • Processes microphone voice audio in 48 kHz / 480-sample (10 ms) frames using Xiph RNNoise's 22-band Bark-scale STFT, pitch comb-filter, and 3-layer GRU neural network (rnnoise_model_orig), embedded directly in Matsu.RepoNoiseSuppression.dll with zero external native DLL dependencies.
    • Suppresses keyboard typing and mouse clicks even while you are actively speaking, not just during silence.
    • Includes a streaming cubic Hermite resampler and circular FIFO ring buffer so microphones running at 16 kHz, 24 kHz, 44.1 kHz, or 48 kHz with any buffer size are processed seamlessly without clicks, dropouts, or memory leaks.
  • Natural Voice Preservation (20 ms Lookahead VAD & Phase-Locked Mixing)
    • Uses RNNoise's 20 ms STFT lookahead window (max(vad_t, vad_{t-1}, vad_{t-2})), a 160 ms hangover release, and +1.4 dB vocal insertion-loss makeup gain so whispers, soft consonants, and word endings are never clipped.
    • Phase-aligns the dry signal path using a matched 960-sample delay line + biquad high-pass filter ($r = 0.9991$), allowing continuous 0%–100% SuppressionStrength blending without comb-filtering or robotic double-voice artifacts.
  • Seamless R.E.P.O. Voice Chat & Monster Hearing Integration
    • Injects directly into LocalVoiceFramed<short> right after framing—upstream of LevelMeter, VoiceDetector, WebRTCAudioProcessor, PlayerVoiceChat.LocalVoicePlaybackProcessor, and OpusEncoder.
    • Prevents background fan noise or keyboard clacks from falsely triggering Semibot mouth flapping (isTalking) or alerting nearby monsters via EnemyDirector.SetInvestigate.
    • Automatically bypasses redundant WebRtcAudioDsp.NoiseSuppression while RNNoise is active to avoid over-compressed audio, and restores the original state if disabled.
  • Client-Side Only & Multiplayer Ready
    • Only the player who wants their outgoing microphone cleaned needs to install this mod. Other players in the lobby do not need to install it.
    • Preserves R.E.P.O.'s native proximity distance attenuation, wall occlusion, lobby/truck voice switching, push-to-talk, mute toggle, microphone device switching, and voice mods (such as RepoUtilityDrones Silencer Drone or Mimic mods).
  • Bilingual In-Game Settings UI (English & Japanese)
    • Automatically appears alongside R.E.P.O.'s Settings → Audio screen, or can be toggled anytime with F9 (configurable).
    • Automatically syncs with R.E.P.O.'s official language setting (English / 日本語) or can be switched manually in the panel header.
    • Includes real-time Input / Output / VAD level meters, dB noise reduction readout, quick strength presets (0%, 50%, 85%, 100%), and a local Mic Test preview toggle.

Installation & Controls

Install with Thunderstore Mod Manager or r2modman. BepInExPack is the only required dependency.

For manual installation, install BepInEx first, then copy Matsu.RepoNoiseSuppression.dll into BepInEx/plugins/RepoNoiseSuppression/. No external applications, virtual audio cables, or extra native DLLs are required.

  • Open Settings → Audio in R.E.P.O. to view the AI Noise Suppression control panel automatically, or press F9 at any time.
  • Mic Test (EnableMicrophonePreview) lets you hear your own noise-suppressed voice through your headphones. It always starts OFF on game launch and automatically turns OFF when closing the Audio Settings menu to prevent echo or feedback loops during gameplay.

Configuration

BepInEx/config/matsu.repo.noisesuppression.cfg:

Section Key Default Description
1. General EnableNoiseSuppression true Enable or disable real-time RNNoise AI noise suppression.
1. General SuppressionStrength 85 Suppression strength (0 = original dry mic, 85 = recommended balanced clarity, 100 = maximum suppression).
1. General PreserveVoiceQuality true Prioritize natural voice formants, whispers, and word endings using 20 ms lookahead VAD and 160 ms hangover.
2. Microphone Test EnableMicrophonePreview false Play your processed microphone audio locally for testing (use headphones; resets to false on launch).
3. UI ToggleUiKey F9 Hotkey to show/hide the standalone AI Noise Suppression settings window.
4. Diagnostics EnableDebugLogging false Write detailed voice pipeline and DSP diagnostics to BepInEx/LogOutput.log.

Verification & Notes

Version 1.0.0 passed 298 automated DSP and lifecycle checks across 10 test suites (ON/OFF bit-exact passthrough, -47.3 dB stationary fan/hum suppression, -40.0 dB keyboard clack reduction with +3.1 dB speech SNR gain during typing, -46.6 dB mouse click peak reduction, whisper preservation, loud laughter soft-limiting, continuous operation at 0.41 ms per 10 ms frame with zero steady-state GC growth, 200 lobby rejoin cycles, and 16k/24k/44.1k/48k resampling).

Bug Reports & Requests

Found a bug or have a feature request? Please use the REPO Mods – Bug Reports & Requests form and mention RepoNoiseSuppression in the details.

License & Credits

  • RepoNoiseSuppression: MIT License (Copyright (c) 2026 Matsu)
  • RNNoise Algorithm & Model Weights: BSD 3-Clause License (Copyright (c) 2003–2018 Xiph.Org Foundation, Jean-Marc Valin, Gregor Richards, Mozilla, CSIRO, Octasic Inc., Mark Borgerding).

Repo Noise Suppression(日本語)

R.E.P.O. のゲーム内ボイスチャット(VC)に、リアルタイムAIノイズ抑制(Xiph RNNoise)を追加するクライアント専用MODです。 単なる音量ゲート(一定音量以下をミュートするだけの処理)ではなく、ニューラルネットワークによる音声信号処理をゲーム内VCパイプラインへ直接統合し、話している最中のキーボード打鍵音・マウスクリック音や、無言時のPCファン・扇風機・エアコン・環境ノイズを除去しつつ、人間の自然な話し声(小声やささやき声、語尾)をクリアに相手へ届けます。

主な特徴

  • 本物のRNNoise推論処理(単一C# DLL完結・リアルタイムAIノイズ除去)
    • Xiph RNNoiseの22バンドBarkスケールSTFT・ピッチフィルタ・3層GRUニューラルネットワーク(rnnoise_model_orig)を Matsu.RepoNoiseSuppression.dll 内に完全内蔵し、48kHz / 480サンプル(10msフレーム)単位でリアルタイム推論を実行します(外部ネイティブDLL不要)。
    • 48kHz以外のマイク(16kHz / 24kHz / 44.1kHz等)や非480サンプル境界のバッファでも、ストリーミング3次エルミート補間リサンプラと循環FIFOリングバッファにより、音飛び・音切れ・メモリ増加なしで連続処理します。
  • 自然な声質を維持(20ms先読みVAD・位相整合ブレンド)
    • RNNoiseのSTFT遅延(960サンプル=20ms)を活かした先読みVAD(音声区間検出)と160msのリリース保持(ハングオーバー)により、話し始めの子音や小声、語尾の欠落を防ぎます。
    • 原音(ドライ)経路に960サンプル遅延ライン+位相整合バイカッドフィルタを備えており、抑制強度(0%〜100%)を中間値に設定しても二重音声やロボット声(コムフィルタ現象)が発生しません。
  • R.E.P.O.標準VC・モンスター聴覚との完全統合
    • LocalVoiceFramed<short> のフレーミング直後(LevelMeter / VoiceDetector / WebRTCAudioProcessor / PlayerVoiceChat.LocalVoicePlaybackProcessor / OpusEncoder の前段)でマイク送信音声のみをインプレース処理します。
    • キーボード打鍵音やファン音でキャラクターの口パク(isTalking)が誤作動したり、近くのモンスターが環境音に反応して調査(EnemyDirector.SetInvestigate)に来たりする現象も防ぎます。
    • ゲーム標準の WebRtcAudioDsp.NoiseSuppression との二重処理による声のこもりを自動で回避し、MODをOFFにした際は元の設定へ安全に復元します。
  • クライアント専用・マルチプレイ完全対応
    • 自分のマイク音を綺麗にしたいプレイヤーだけが導入すれば動作します。 他の参加者やホストが導入している必要はありません。
    • 外部アプリ・仮想マイク・外部サーバーは一切不要で、完全オフライン動作します。
    • ゲーム本来の距離減衰、壁越し減衰、ミュート、プッシュトゥトーク、マイク切替、ロビー再参加、他プレイヤーの受信音声、および RepoUtilityDrones(Silencer Drone)やMimic系MODなどの音声機能を損ないません。
  • 日本語・英語対応のゲーム内設定UI
    • ゲームの 設定(Settings)→ オーディオ(Audio) 画面を開くと連動して自動表示されるほか、F9 キー(設定で変更可能)でいつでも開閉できます(RepoDeathCounter や RepoLevelMVP の F8 キーと競合しません)。
    • R.E.P.O.本体の言語設定(日本語/英語)に自動連動し、パネル右上のボタンで手動切替も可能です。
    • 入力音量(処理前)・出力音量(処理後)・音声検出確率(VAD)のリアルタイムメーター、ノイズ減衰量(dB)表示、ワンタッチ強度プリセット(0% / 50% / 85% / 100%)、および処理後の自分の声をヘッドホンで確認できる マイクテスト機能 を搭載しています。

導入・操作方法

Thunderstore Mod Manager または r2modman から導入してください。必要な依存MODは BepInExPack のみ です。 手動導入の場合は、BepInExを導入したうえで Matsu.RepoNoiseSuppression.dll を BepInEx/plugins/RepoNoiseSuppression/ フォルダ内に配置してください。

  • ゲーム内の Settings → Audio(オーディオ設定) を開くと設定パネルが自動表示されます。また、F9 キーでいつでも単独表示・非表示を切り替えられます。
  • マイクテスト(自分の声を聴く) をONにすると、ノイズ抑制後の自分の声をヘッドホンで直接確認できます。ハウリングや二重音声を防ぐため、ゲーム起動時は常にOFFで開始し、オーディオ設定画面を閉じると自動でOFFに戻る安全設計になっています。

設定項目 (BepInEx/config/matsu.repo.noisesuppression.cfg)

  • 1. General / EnableNoiseSuppression(既定 true):AIノイズ抑制のON/OFF
  • 1. General / SuppressionStrength(既定 85、範囲 0〜100):ノイズ抑制強度(85% が声の自然さと打鍵音除去の推奨バランス設定です)
  • 1. General / PreserveVoiceQuality(既定 true):声質優先モード(20ms先読みVAD+小声・語尾保護)
  • 2. Microphone Test / EnableMicrophonePreview(既定 false):マイクテスト用プレビュー再生(通常プレイ時は false にしてください)
  • 3. UI / ToggleUiKey(既定 F9):ゲーム内設定パネルの表示切替キー
  • 4. Diagnostics / EnableDebugLogging(既定 false):詳細デバッグログの出力

バグ報告・要望

不具合報告や機能要望はこちらのフォームからお願いします(内容欄に RepoNoiseSuppression と記載してください): https://docs.google.com/forms/d/e/1FAIpQLSfl7f-oNiwjXjd7mUkfQoqBIhbJhQhhfV-ZmovjJVQ9orwuYQ/viewform

ライセンス

  • RepoNoiseSuppression: MIT License (Copyright (c) 2026 Matsu)
  • RNNoise Algorithm & Model Weights: BSD 3-Clause License (Copyright (c) 2003–2018 Xiph.Org Foundation, Jean-Marc Valin, Gregor Richards, Mozilla, CSIRO, Octasic Inc., Mark Borgerding)
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.