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.post0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1193c598ac96bd3caa0e0b9a75aac453fd8c768b290ab0b2610115ed28da4ec |
|
MD5 | e849ba0b544a68f8a2ce5e1568afc55c |
|
BLAKE2b-256 | 35feb671f0673ee87a6b665cf41d5a7aceb5f98de6431b4a8f76446296de7699 |
Close
Hashes for np_audio_control-0.0.2.post0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e89715a91093fc08281bb35fd68394efb1b48bf247dcd718e8dfb2ccd4ce98e |
|
MD5 | 8e3f7502d3c42285891571ae82e95357 |
|
BLAKE2b-256 | afbba074156bada96515d3720a7437a12ffc0243de7f589b70d93e6e206fb0cb |