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.2.post2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49b1897e3f90584216d43ff15760191e6fce4307202a8264d3a153b877af386b |
|
MD5 | 1e4d2750abee5eb327aa35fb67534838 |
|
BLAKE2b-256 | 4c3ae13e114eae4c3e3fffec772c4ae58670cacfb5b2a979db8c0d8e86c59b79 |
Close
Hashes for np_audio_control-0.0.2.post2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f98bef633735efc6c804966d2fe6dc26d11be684c85156db1d029d90c9aeafd |
|
MD5 | e126e014bf5857829b740445d39803be |
|
BLAKE2b-256 | 0e96710c60db506149eda4f03ab6b907e809ced47ec9c34b2a70d5d1f52a64d6 |