Post

AltayChat: The New Way of Secure and Private P2P Audio Communication

🇬🇧 Meet AltayChat, our open-source P2P project that offers end-to-end encrypted and low-latency voice chat without the need for a central server.

AltayChat: The New Way of Secure and Private P2P Audio Communication

Most digital communication tools today pass our data through central servers. This is not only a privacy issue but also represents a “single point of failure” in the communication line and a potential eavesdropping risk. Truly secure and private voice communication requires data to flow directly between users without any intermediaries.

Introducing AltayChat: A secure, low-latency Peer-to-Peer (P2P) voice chat application built with modern WebRTC technology and the power of C++. | 🇹🇷 Türkçe

🎙️ What is AltayChat?

AltayChat is a VoIP (Voice over IP) solution that provides direct voice transmission between two users without using any central audio server. By combining modern networking protocols (WebRTC) and high-quality audio compression algorithms (Opus), it delivers a communication experience that is both secure and crystal clear.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣶⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⡿⠙⢿⣿⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⣿⠏⠀⠀⠀⠻⣿⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⡿⠃⠀⠀⠀⠀⠀⠙⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⡟⠁⠀⠀⠀⠀⠀⠀⠀⠈⢻⣿⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⣿⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⣿⣿℄⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⡿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢿⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⢀⣾⣿⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⣿⣷⡀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⣠⣿⣿⠋⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣿⣿℄⠀⠀⠀⠀⠀
⠀⠀⠀⢀⣼⣿⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⣿⣦⡀⠀⠀⠀
⠀⠀⢠⣾⣿⠟⠀⠀⠀⠀⠀⠀⠀⣸⡀⠀⣸⣿⡆⠀⠀⢸⡀⠀⠀⣿⠀⠀⠀⠀⠀⠹⣿⣷⡄⠀⠀
⠀⣰⣿⣿⣋⣀⣀⡀⠀⣸⡆⠀⢀⣿⣇⠀⣿⣿⣇⠀⠀⣿⣇⠀⢸⣿⣇⠀⠀⣤⠀⢀⣘⣿⣿⣆⠀
⠘⠛⠛⠛⠛⠛⠛⠁⣰⣿⣷⠀⢸⣿⣿⢰⣿⠀⣿⠀⢰⡿⣿⣀⣿⠉⣿⡄⣰⣿⡆⠘⠛⠛⠛⠛⠃
⠲⠶⠶⠶⠶⠶⠶⠶⠿⠁⢿⣇⣿⠇⢿⣿⡏⠀⢿⡆⣼⠃⢹⣿⡏⠀⠸⠿⠿⠉⢿⡀⣰⡶⠶⠶⠂
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⡿⠀⠸⣿⡇⠀⢸⣷⡿⠀⠈⣿⠀⠀⠀⠀⠀⠀⠘⣿⡟⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⡇⠀⠀⣿⠀⠀⠈⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⠁⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠀⠀⠀⠘⠀⠀⠀⢿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀

✨ Key Technical Features

AltayChat is not just a chat app; it’s a piece of serious engineering:

🛡️ End-to-End Encryption (E2EE)

All audio data is encrypted using the DTLS-SRTP protocol, which is the heart of the WebRTC standard. This means that while the data travels over the internet, it is encrypted and can only be decrypted by the recipient. Even the signaling server can never hear your voice.

🚀 Ultra-Low Latency Performance

In real-time voice communication, every millisecond counts. AltayChat:

  • Targets top-tier performance with C++17.
  • Uses Lock-free Ring Buffer structures to move data between network and audio threads with zero blocking.
  • Provides high quality even at low bandwidth using the Opus Codec (48kHz Mono).

🌐 Smart Signaling & Firewall Bypass

To overcome NAT and Firewalls—the biggest obstacles for P2P connections—AltayChat uses a hybrid structure:

  • Cloudflare Workers & Durable Objects: A lightweight and scalable signaling server brings peers together.
  • TURN Relay Support: It has the ability to tunnel traffic through ports 53 (DNS), 80 (HTTP), and 443 (HTTPS) to establish connections even in the strictest corporate networks.

🛠️ Technical Stack

Component Technology
Networking libdatachannel (WebRTC)
Audio Codec libopus
Audio I/O PortAudio
Signaling Cloudflare Workers & Durable Objects
Language C++17

📦 Getting Started

AltayChat is portable and runs smoothly on Linux, macOS, and Windows.

Quick Start

  1. Run the application.
  2. Enter a unique room name (e.g., private-room-123).
  3. Give your friend the same room name.
  4. Once connected, start talking!

For Developers (Arch Linux)

1
2
3
4
5
6
7
8
9
# Install dependencies
sudo pacman -S libdatachannel opus portaudio nlohmann-json cmake ninja

# Build the project
cmake -B build
cmake --build build -j$(nproc)

# Run
./build/altaychat

🔒 Privacy Commitment

There are no “Server Logs” or “Metadata Analysis” in AltayChat. The app uses your IP address only to establish a connection (which can even be hidden if you use a TURN relay). Audio data is never written to disk or processed on any server.

💡 Why AltayChat?

Against increasing global censorship and surveillance, the need for individuals to control their own communication channels is greater than ever. AltayChat aims to meet this need by offering a lightweight yet secure alternative that requires no complex setups.

Check the code and contribute on GitHub: fr0stb1rd/altaychat

This post is licensed under CC BY 4.0 by the author.