Voice Chat

Is there any way to add voice chat to game using nakama?

1 Like

@mohammad_780 Both Nakama’s client-relayed and server-authoritative multiplayer features can carry any arbitrary data you choose to send, including text and voice chat data.

That said you may want to use a more fully-featured dedicated voice solution, probably something peer-to-peer between users and relying on Nakama as a signalling server to control connectivity and permissions. This would save you the effort of implementing things like noise cancelling and other voice-specific features yourself. :+1:

1 Like

I’m trying to send voice datas over udp But I don’t know how to add this feature to nakama that sends voice datas over udp and just users who are in same team of playing match recive these datas

Hi Mohammad, You could look into using something like MirrorFly for voice chat. It supports real-time voice communication and can work alongside Nakama. You’d still use Nakama to manage teams and matches, and just use it for signaling who should connect. Then handle the actual voice data with MirrorFly, which supports UDP and has built-in features like noise reduction. This way, you don’t have to build the low-level voice handling yourself.