https://github.com/ideoforms/alsa-volume-listener
Set Alsa system output volume by sending an OSC message
https://github.com/ideoforms/alsa-volume-listener
Last synced: 10 months ago
JSON representation
Set Alsa system output volume by sending an OSC message
- Host: GitHub
- URL: https://github.com/ideoforms/alsa-volume-listener
- Owner: ideoforms
- Created: 2025-07-04T12:52:14.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-08-28T12:57:55.000Z (10 months ago)
- Last Synced: 2025-08-28T20:22:15.423Z (10 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Alsa volume listener
Listens for OSC `/set_volume` messages, and sets the Alsa system output volume accordingly.
## Usage
Create a virtual env, and run:
```
pip3 install -r requirements.txt
python3 run-volume-listener.py
```
Then, send an OSC message to port 13007 containing `set_volume `, where `` is a float between 0 and 1.
To install the system service:
```
sudo ln -s ~/alsa-volume-listener/auxiliary/alsa-volume-listener.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable alsa-volume-listener
sudo systemctl start alsa-volume-listener
```