This project provides a terminal-based user interface (TUI) for routing audio between different audio interfaces using
PyAudio
.
It is particularly useful for setups involving virtual audio cables, where routing audio from one software/device to another is needed — for example, directing microphone input to a virtual device that your streaming or recording software listens to.
- Interactive TUI for selecting input and output audio interfaces
- Real-time audio routing from input to output device
- Minimal setup
Originally built to route audio through a Virtual Audio Cable setup, such as:
- Sending mic input to a virtual device
- Monitoring virtual input/output channels
- Bridging physical and software-based audio endpoints
- Python 3.7 or higher
- Terminal that supports basic text input
-
Clone the repository (if applicable):
git clone https://github.com/Harsh-br0/audio-router.git cd audio-router
-
(Optional) Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
Note: If you encounter errors installing pyaudio, you may need to install system-level dependencies:
On Debian/Ubuntu:
sudo apt-get install portaudio19-dev python3-pyaudioOn macOS:
brew install portaudio
Run the script from the project root:
python route.py