I’ve been sitting on multiple meetings for a while now and I really wanted to be able to pan audio from Teams to one side and Edge to the other. I didn’t have the time to learn about all the requisite APIs, so I asked Claude Code to help me and now I have an Python script that let me pan that audio left or right, per app name.
Instructions
These instructions assume you already have Python installed. Once Python is installed, open a terminal window (Command Prompt or similar) and install pycaw with the following command.
pip install pycaw
Next, download audio_panner.txt and rename to audio_panner.py
Then run it in a terminal window and list out the running apps
python audio_panner.py --list
Once you have your list, you can pan audio using the following command.
python audio_panner.py --app APP_NAME --pan #.##
And that’s it!