Tools for remote control of Windows system audio on Mindscope Neuropixels and Behavior rigs.
Project description
np_audio_control
For use on internal Allen Institute network
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
File details
Details for the file np_audio_control-0.1.0.tar.gz
.
File metadata
- Download URL: np_audio_control-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.4.9 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54a693c9c0cee5216bc70551d6191e5d69d4b588da0ae257151d4c9911bcf572 |
|
MD5 | 290ad912b8e8102b1ff61b1c9cdb66d8 |
|
BLAKE2b-256 | 7dc96f64dab943d71c799467dedaf9a965c423e114c2adfc325993f57166df5e |
File details
Details for the file np_audio_control-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: np_audio_control-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.4.9 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 739fd37f3024a82af76675bb1e01f3680082015df103c06de3505d4a1aff878e |
|
MD5 | 7c82edfad1685cd0acb9ee95bd1645ea |
|
BLAKE2b-256 | c55dabe4206ba1cc3139f8af469e619ab35858c39b0637a5d2fe30c33a5128d7 |