Client for Remote Alsamixer
Project description
Alsa GRPC Client
Small library that allows real-time volume control of ALSA devices
Example Usage
Note: Server must be running at <host>
from alsa_grpc_client import AlsaClient
from time import sleep
def on_connect(ctrl):
print('Connected to', ctrl.card, ctrl.name, ctrl.volume)
ctrl.subscribe(lambda: print('Received volume update for', ctrl.name, ctrl.volume))
client = AlsaClient('<host>', 50051, on_connect)
client.connect()
sleep(1)
for name, ctrl in client.controls.items():
ctrl.set_volume(.5)
sleep(1)
client.disconnect()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file alsa_grpc_client-0.0.16.tar.gz
.
File metadata
- Download URL: alsa_grpc_client-0.0.16.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 093b9f7f9b0edfa304b5e868e318c93b0130f50de73e5192983b4f930f217ebb |
|
MD5 | 80c9c7240dccb2b5065c17b151b4695e |
|
BLAKE2b-256 | 5f43f613b5b2ffbb35a0f06ff55a78263504d15732ff35605e465094870d76f1 |
File details
Details for the file alsa_grpc_client-0.0.16-py3-none-any.whl
.
File metadata
- Download URL: alsa_grpc_client-0.0.16-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d22f2bac4eea03b984df3943f5eee94bc0100d4c875d80c773849f05fabf1a0f |
|
MD5 | 99c1c90fb6379f16298a857dff6f8db2 |
|
BLAKE2b-256 | 6f1fb85cee92a4ae247fcb309e6cb9c5175ff883e910e573082274f3644957ab |