VoiceChat By Gilden banner
VoiceChat By Gilden icon

VoiceChat By Gilden

Make a voice chat mod that works via client side. It should work like if i have the mod and my friend has the mod we can talk to each other but its not...

00
fabricClient1.21.1mod

VoiceChat By Gilden

What it does

  • Client-only Fabric mod that adds push-to-talk voice chat without requiring anything on the Minecraft server.
  • Players pick a host and connect peers directly over UDP while playing on any world or server.
  • Default push-to-talk key is V; on-screen HUD shows hosting/connection status, peers, and when you are speaking.
  • Commands: /voicechat host <port>, /voicechat connect <host> <port>, /voicechat stop, /voicechat status.

Implementation highlights

  • Host acts as a lightweight relay: clients send audio to the host; the host forwards it to all connected peers and plays it locally.
  • Voice packets include the sender name and raw PCM chunks; audio is captured at 16 kHz mono with Java Sound and written straight to the speaker buffer for low latency.
  • Networking is separate from the Minecraft server so it works on realms/public servers as long as players can reach the host's UDP port.

Limitations and tips

  • The chosen UDP port must be reachable by friends (LAN or port forwarding as needed); no NAT traversal or discovery is built in.
  • Audio is unencrypted; only use with people and networks you trust.
  • There is no built-in noise suppression or volume normalization—configure your microphone at the OS level if clipping or background noise is an issue.