← projects

Voice Chat Room

Voice chat room.

source ↗

In this project I wanted to implement a voice chat room for real-time audio communication with low latency audio processing.

Why I did this?

I wanted to create a voice chat application with a relay server and without many dependencies. Since I already did a simple client/server-only one with no audio processing in some of the previous projects, I wanted to improve things.

What I learned?

I understood how audio works better in general. Especially in low latency and streaming area. Since audio buffers are always hungry for samples and networks, streams, thread locks, thread waking from sleep, context switching always create latency, I learned a lot of things for real-time applications. I tried for a month to create a reliable audio mixer because there is no room for latency, even an await for async task. I finally came up with a simple approach to solve things. Probably I can improve more but since I understand the process and further improvements never end, I'm going to keep it as it is.