This program addresses an issue with the volume on Google Chrome by adjusting the audio settings using the pycaw
library.
- Ensure you have Python installed on your system.
- Install the required library by running:
pip install pycaw
- Clone this repository using the following command:
git clone https://github.com/mayankpatibandla/Chrome-Volume-Fix.git
- Navigate to the directory:
cd Chrome-Volume-Fix
- Run the program by executing:
python main.py
The provided Python script leverages the pycaw
library to interact with the Windows Core Audio API. It iterates through all active audio sessions and identifies those associated with Google Chrome (chrome.exe
). For each Chrome session, it adjusts the master volume to 100%.
This program is provided as-is, without any warranties or guarantees. Use at your own risk.
This project is licensed under the MIT License.
Contributions are welcome! If you find any issues or have suggestions, feel free to open an issue or create a pull request.
To run the Chrome Volume Fix program automatically, you can utilize the Windows Task Scheduler. Follow these steps:
-
Search for Task Scheduler in the Windows search bar and open it.
-
In the right-hand panel, click Create Task....
-
Give your task a name and description.
-
Select the Triggers tab.
-
Click New.... From the dropdown, select On workstation unlock (or any other trigger that suits your needs) and click Ok.
-
Select the Actions tab.
-
Click New.... From the dropdown, select Start a program.
-
Click Browse... and navigate to the location where your
pythonw.exe
is installed. Select the file and click Open. -
Navigate to the location where you cloned this repository and copy the path to
main.py
. -
Paste this path into the Add arguments (optional): field (you may need to surround the path in quotes).
-
Press Ok and then press Ok to complete creating the task.
The task is now scheduled to run on the specified triggers.