Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alsa-grpc-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alsa-grpc-client

Client for Remote Alsamixer

  • 0.0.16
  • PyPI
  • Socket score

Maintainers
1

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()

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc