Voice Chat

68 views
Skip to first unread message

Ajesh Jally

unread,
Feb 27, 2017, 1:10:33 PM2/27/17
to kryonet-users
Hi what would be the best way to go about developing a system to allow users to voice chat with each other using a server/ client structure? I see examples on the internet using sockets and datagrampackets but how would you implement this with Kryonet I'm quite confused?

Joachim Durchholz

unread,
Feb 28, 2017, 3:26:26 PM2/28/17
to kryone...@googlegroups.com
On 27.02.2017 19:10, Ajesh Jally wrote:
> Hi what would be the best way to go about developing a system to allow
> users to voice chat with each other using a server/ client structure?

Read up on jitter, latency for network topics.
On codecs, echo suppression for telephony.
For networking topics, on banging holes through NAT for UDP. (You need
to do UDP for realtime applications.)

None of this is actually related to Kryonet.

Ajesh Jally

unread,
Mar 2, 2017, 5:09:58 AM3/2/17
to kryonet-users
if I were to use Kryonet as the library though, what data am I sending between the client and server? Is it the byte array of sound?

Joachim Durchholz

unread,
Mar 2, 2017, 7:33:34 AM3/2/17
to kryone...@googlegroups.com
On 02.03.2017 11:09, Ajesh Jally wrote:
> if I were to use Kryonet as the library though, what data am I sending
> between the client and server? Is it the byte array of sound?

1) You'd want to establish a direct client-to-client connection, having
a server between people just adds latency that you do not want.
(client-to-client means you need a way to punch holes through NAT while
using UDP.)
2) You'd want to send compressed data, not direct sound arrays. That's
why codecs are important.

Regards,
Jo
Reply all
Reply to author
Forward
0 new messages