XaiJu
Bryson McBee
Bryson McBee

patreon


Bryson's Godot 4.4 Multiplayer Proximity Voice Chat Template

Hey pals! I have been learning a ton about Multiplayer games in Godot lately, and I've been working on proximity voice chat systems inspired by games like Peak and Lethal Company!

It was a huge challenge wrapping my head around multiplayer and getting voice chat working, and I found only a handful of resources online to help me out, so I thought I'd share this template for a basic multiplayer proximity voice chat along with a tutorial on a super basic proximity voice chat system!

This project comes with a prebuilt local multiplayer debugger setup so you can just press play and immediately see a couple players spawned in! It also is packaged with a couple really great open source plugins in Raytraced Audio by WhoStoleMyCoffee and twovoip by goatchurchprime! The project is already setup with Raytraced audio nodes to handle muffling and reverb as the 3D audio players move through the scene, but I haven't implemented any of the twovoip solutions for Opus audio compression and rnnoise suppression as these are a bit more advanced and can be a bit difficult to understand how they're working under the hood. The goal of this project is to give users a really accessible starting point to improve on and build their own multiplayer proximity voice chat system from.

Note, this project is absolutely not production ready as it's only setup for local network multiplayer, and the networking solution for voice chat is nowhere near optimized for online voice chat yet. You'll want to consider using some data compression solutions like Opus to get better voice processing over online networks and implement a noise gate feature to be sure you're not constantly sending like a kilobyte of data every single frame. As for online networking solutions, I super recommend the godot steamworks peer to peer precompile build, it's pretty straightforward and well supported by its Discord community (though you might have a hard time finding any public articles to help you out when the documentation leads you astray, the discord community is truly a wealth of information where the docs are lacking).

I hope this project and eventual tutorial will help you in achieving your game dev dreams! Thanks pals!

Credits: Much of this template was inspired by this peer to peer multiplayer template by Finnder and this write up on the Godot subreddit by u/passthecodine!

Bryson's Godot 4.4 Multiplayer Proximity Voice Chat Template

Comments

Super wicked to see you creating content and sharing it with other Godot users!

Katrina Klempa


More Creators