A simple WebRTC based walkie talkie app(-ish).
This project is inspired by the walkie-talkie app on the Apple Watch. It is by no means a complete clone of the app, but it is a fun project to learn more about WebRTC and how to use it in a real world application.
This app allows you to connect to a server and talk to other people connected to the same server. Currently you have the option to connect with a specific person. I don't yet support multiple people in the same room, but that is something I want to add in the future. There is a chat feature too, which is global, so everyone connected to the server can see the messages and talk to each other.
This project consists of two parts, the server and the client. The server is a simple Node.js server that accepts websocket connections from clients. It facilitates the communication between clients and keeps track of who is connected to the server.
The client is a Next.js app that uses React. It uses a websocket connection to the server to communicate with other clients. WebRTC is used to establish a peer-to-peer connection between clients.
The app is deployed on my home server using my own domain. Check it out here. It is served securely with the help of a Let's Encrypt provided certificate managed and set up with Certbot. The app is then exposed through an NGINX reverse proxy.
The app can be deployed with Docker. The server and client are separate Docker images and can be run separately. The server is exposed on port 4002 and the client on port 3001.
cd server
sudo docker build -t walkie-talkie-server .
sudo docker run -p 4002:4002 walkie-talkie-server
cd app
sudo docker build -t walkie-talkie-client .
sudo docker run -p 3001:3001 walkie-talkie-client
- Connect to server with a nickname
- Connect with a specific peer
- Allow multiple peers to connect and talk
- Disable talk option if someone else is talking
- Speech-to-text and text-to-speech
- Chat groups
- Disconnect button
- Secure who can connect to the server