Audio Mixer for Windows by Mikelesi and JohnBronx01
Audio Mixer is a Python application that allows you to control the audio volume of different applications on your Windows system.
It provides a graphical user interface (GUI) to manage audio sessions, adjust volumes, and manage favorite audio sessions.
- List all active audio sessions.
- Adjust the master volume of the system.
- Adjust the volume of individual audio sessions.
- Add and remove audio sessions from favorites.
- Automatically refresh the list of audio sessions and favorites.
- Display a timer indicating the time remaining until the next automatic refresh.
- Control volume and switch sessions using keyboard shortcuts, even when the application is in the background.
- Python 3.x
- pycaw library
- comtypes library
- pystray library
- Pillow library
- keyboard library
- Clone the repository
- Install the required libraries using pip:
pip install pycaw comtypes pystray pillow keyboardRun the audiomixer1.x.py file (where x stands for the version number of the app):
python audiomixer1.x.pyOr just run the .exe file.
The application window will open, displaying the list of active audio sessions and the master volume.
Use the following keyboard shortcuts to control the application:
- Volume Up: F18 (default, can be changed in the GUI)
- Volume Down: F17 (default, can be changed in the GUI)
- Cycle Sessions: F20 (defualt, can be changed in the GUI)
- Cycle Favorites Sessions: F19 (default, can be changed in the GUI)
You can add or remove audio sessions from favorites using the buttons provided in the GUI.
The application will automatically refresh the list of audio sessions and favorites every 60 seconds.
The timer indicating the time remaining until the next refresh is displayed in the GUI.
If you want to create the .exe file starting from the .py file, you can use pyinstaller
You can install it via pip:
pip install pyinstallerTo create the .exe file, open the terminal in the directory where the .py file is located, and type:
pyinstaller --noconsole --onefile [filename].pywhere [filename] is the name of the .py file you want to create an .exe from (in our case, AudioMixer1.x.py)
- Session Listbox: Displays the list of active audio sessions and the master volume.
- Volume Slider: Allows you to adjust the volume of the selected audio session or the master volume.
- Refresh Button: Manually refreshes the list of audio sessions.
- Favorite Listbox: Displays the list of favorite audio sessions.
- Add to Favorites Button: Adds the selected audio session to the favorites list.
- Remove from Favorites Button: Removes the selected audio session from the favorites list.
- Timer Label: Displays the time remaining until the next automatic refresh.
- Credits Label: Displays the credits for the application.
The application uses the keyboard library to intercept keyboard events at the system level, allowing it to respond to keyboard shortcuts even when it is not the active window.
This project is licensed under the MIT License. See the LICENSE file for details.
- pycaw - Python Core Audio Windows Library
- comtypes - A pure Python COM package
- pystray - A cross-platform system tray icon library
- Pillow - Python Imaging Library (PIL) fork
- keyboard - Hook and simulate global keyboard events on Windows and Linux
This README provides an overview of the application's features, installation instructions, usage, and details about the GUI components. It also includes notes on the requirements and acknowledgements for the libraries used in the project.