UDP broadcaster and receiver for opus audio packets on Windows 10/11 Encodes audio in broadcaster and decodes audio in receiver. This project was compiled using MSVC using the VScode IDE. Instructions on how to compile are below.
The folder inlclude\
and lib\
has the header files and the precompiled static libraries respectively.
This project uses Audio Codec Opus and Portaudio to access microphone and speakers
There are precompiled binaries for both broadcaster and receiver.
- Install Microsoft Build Tools
- Once installed, check off "Desktop development with C++"
- Install VScode with default settings
- Recommended to install Microsoft C/C++ extensions for debugging and IntelliSense
- Download or install the
udp-vocoder
project
The following step is neccessary every time if you want to compile the code
- Go to the start menu and search up "Developer Command Prompt for VS2022"
- Use
cd [path]
in the terminal to your project folder. - Use
code .
to open up VScode. - Open
broadcaster.cpp
and go to the menu ribbon and go to "Run" -> "Run without Debugging" - Repeat step 8 with
receiver.cpp
- Run
broadcaster.exe
andreceiver.exe
(can open receiver.exe on a seperate device connected to the same network)