Tools for remote control of Windows system audio on Mindscope Neuropixels and Behavior rigs.
Project description
np_audio_control
Tools for remote control of Windows system audio on Mindscope Neuropixels and Behavior rigs.
Uses SetVol v3.4 (https://www.rlatour.com/setvol/)
Install
python -m pip install np_audio_control
Basic usage
>>> from np_audio_control import mute, unmute, set_volume, get_volume
>>> host = 'W10LTPC2BC51P'
# interact with default audio device
>>> mute(host)
>>> unmute(host)
>>> set_volume(50, host)
>>> get_volume(host)
50
# interact with specific device (see SetVol `device name` argument)
>>> device = 'Speakers (Realtek USB2.0 Audio)'
>>> mute(host, device)
>>> set_volume(50, host, device)
# send any command to SetVol
>>> from np_audio_control import send_setvol_cmd
>>> send_setvol_cmd(host, 'beep')
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
Close
Hashes for np_audio_control-0.0.2a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31957f6312afa3437e6c9d41b54b8fec812428eb81dddffbeffcf61ccf4c31f4 |
|
MD5 | 6c4a40086ae088a543ca6c4644c20227 |
|
BLAKE2b-256 | 3423bd62757a6a25bf80f93b30549192bcb94a6a7023dfb7130d14bdc249b0b4 |