Skip to content

Tools for remote control of Windows system audio on Mindscope Neuropixels and Behavior rigs

Notifications You must be signed in to change notification settings

AllenInstitute/np_audio_control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

np_audio_control

For use on internal Allen Institute network

Python Versions

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 --extra-index-url https://pypi.org/simple 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')

About

Tools for remote control of Windows system audio on Mindscope Neuropixels and Behavior rigs

Resources

Stars

Watchers

Forks

Languages