You are viewing a potentially older version of this package. View all versions.
Nubedeu-ProximityVoice-0.1.0 icon

ProximityVoice

Proximity voice chat. Push-to-talk or toggle (default U), hear nearby players in 3D positional audio. Opus codec, server-side distance culling, in-game mic gain (F4), noise-gate (F6), and talk-key rebind (F7) tuning. Windows recommended.

By Nubedeu
Date uploaded 3 weeks ago
Version 0.1.0
Download link Nubedeu-ProximityVoice-0.1.0.zip
Downloads 63
Dependency string Nubedeu-ProximityVoice-0.1.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2333 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2333

README

ProximityVoice

In-game proximity voice chat for Valheim. Talk to the players around you and hear them in 3D positional audio — the closer they are, the louder and more directional their voice. No external program or server required; everything runs through Valheim's own networking.

Features

  • Positional 3D voice — voices come from the speaker's location. Full volume up close (within 10 m by default), then fading smoothly to silence at the hearing range (50 m by default). Both distances are configurable.
  • Push-to-talk or toggle — hold a key to talk (default mode), or switch to press-to-toggle. Talk key default U (mouse buttons supported), rebindable in-game.
  • Adjustable mic gain — quiet microphone? Open the gain overlay (default F4) and scroll the mouse wheel (or Up/Down) to boost how loud you're sent to others, watching your live level as you tune.
  • Mic calibration overlay — open it (default F6) to see your live input level in dB and set the noise-gate threshold so background noise isn't transmitted.
  • Clear, close-sounding voice — bypasses Valheim's reverb zones, so nearby players sound right next to you instead of "in a cave".
  • On-screen mic meter — a small speaker icon whose sound waves light up with your captured audio level, so you always know your mic is being picked up.
  • Opus codec (Concentus) — clear voice at a low ~24 kbps.
  • Server-side distance culling — the host only forwards your voice to players actually in range, saving bandwidth.
  • No external dependencies — uses Valheim's native routed RPC. The host relays voice, so it works on a normal player-hosted world as well as a dedicated server.

Requirements

  • All players need this mod installed (the host relays voice, and each client captures/plays it).
  • BepInEx (the dependency is pulled automatically by the mod manager).
  • Windows recommended. Mic capture uses NAudio (Windows audio) and automatically falls back to Unity's microphone on other systems; the fallback is untested.

Usage

  1. Join or host a world (a normal co-op session is fine — no dedicated server needed).
  2. Get within hearing range of another player (50 m by default; full volume within 10 m).
  3. Hold U to talk (default push-to-talk). Nearby players hear you and the on-screen meter reacts. Release to stop.
  4. First time: press F4 and scroll to set your mic gain if you're too quiet, and F6 to set the noise gate. Optionally switch to toggle mode (MicMode) so a single press turns the mic on/off.

You do not hear your own voice. To judge audio quality solo, enable SelfTest under [Debug] in the config (turn it back off for normal play).

Configuration

Settings live in BepInEx/config/Nubedeu.proximityvoice.cfg. Most can also be tuned in-game:

  • General
    • MicModePushToTalk (hold, default) or Toggle (press on/off).
    • PushToTalkKey (default U) and PushToTalkReleaseTail (extra transmit time after release so sentence ends aren't clipped).
    • MicGainKey (default F4) — opens the mic gain overlay.
    • CalibrateKey (default F6) — opens the noise-gate calibration overlay.
    • RebindKey (default F7) — rebind the talk key in-game.
    • FullVolumeRange (default 10) — metres of no falloff around a speaker.
    • HearingRange (default 50) — max audible distance; also the server-side culling radius.
  • AudioMicGain (your outgoing mic amplification), Volume (incoming playback), MicDevice (empty = system default), NoiseGateDb (threshold below which audio isn't sent).
  • HUDMicIndicatorX, MicIndicatorBottom, MicIndicatorScale (position/size of the mic meter).
  • DebugSelfTest (loopback to hear your own voice; off by default).

Multiplayer note: distance culling runs on the host, so the host's HearingRange decides the maximum range everyone is heard at. The volume falloff (FullVolumeRange/HearingRange) is applied per-listener on each client.

Notes

This is an early release. Feedback on audio quality and reliability is welcome.

CHANGELOG

Changelog

0.2.1

  • Fixed: no voice after reconnecting. Voice RPCs are now re-registered every time you (re)connect to a world. Before, after disconnecting and rejoining, you would still hear your own SelfTest loopback but no one could hear anyone else, because the voice handlers were left bound to the old, dead connection.
  • Fixed reported plugin version: the in-game/BepInEx version now correctly reads the package version (was stuck at 0.1.0).

0.2.0

  • Native in-game UI: the mic-gain (F4), calibration (F6) and talk-key rebind (F7) overlays now use the game's own font and sign-panel card, centred on screen, instead of the old plain boxes.
  • Clearer rebind prompt: the F7 overlay now spells out that you're choosing a new push-to-talk key.
  • HUD config changed: the mic indicator is now positioned with MicIndicatorMarginX (distance from the left edge) and MicIndicatorOffsetY (vertical offset from centre); the old MicIndicatorX / MicIndicatorBottom keys are no longer used (tuned values reset to the new defaults).

0.1.0

  • Fixed "cave" / distant-sounding voice: voice now bypasses Valheim's reverb zones and listener effects, so nearby players sound close and clear. Also disabled Doppler so voices don't pitch-shift as players move.
  • Adjustable microphone gain: new in-game mic gain overlay (default F4) — open it and scroll (or Up/Down) to boost how loud your own mic is sent to others. Helps quiet microphones. Configurable MicGain and MicGainKey.
  • Distance falloff reworked & configurable: full volume within FullVolumeRange (default 20 m), then a smooth linear fade to silence at HearingRange (default 80 m). Both are configurable.
  • Capture gain is applied before the noise gate and meter, so boosting a quiet mic also makes the gate trigger reliably.

0.0.1

  • Initial release.
  • Proximity voice chat over Valheim's native routed RPC (host relays, server-side distance culling).
  • Opus codec (Concentus) at ~24 kbps, mono 48 kHz.
  • Windows mic capture via NAudio (WaveIn) with a Unity Microphone fallback.
  • Two mic modes: push-to-talk (hold, default) or toggle, talk key default U (mouse buttons supported), with a release tail so sentence ends aren't clipped.
  • In-game mic calibration overlay (default F6) showing live dB with an adjustable noise-gate threshold for sensitivity tuning.
  • In-game talk-key rebind (default F7).
  • On-screen speaker meter that reacts to captured audio level.
  • 3D positional playback with distance attenuation (default 40 m range).
  • Configurable hearing range, volume, mic device, noise gate, HUD position, and a SelfTest loopback for solo audio checks.