Skip to main content

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 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')

Metadata

Release files for np-audio-control 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for np-audio-control 0.1.0
File Size Uploaded Provenance
np_audio_control-0.1.0.tar.gz 4.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for np-audio-control 0.1.0
File Interpreter ABI Platform
np_audio_control-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / np_audio_control-0.1.0.tar.gz

Download URL np_audio_control-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
54a693c9c0cee5216bc70551d6191e5d69d4b588da0ae257151d4c9911bcf572
BLAKE2b-256 checksum
How to use checksums
7dc96f64dab943d71c799467dedaf9a965c423e114c2adfc325993f57166df5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.4.9 CPython/3.9.13

Release files / np_audio_control-0.1.0-py3-none-any.whl

Download URL np_audio_control-0.1.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
739fd37f3024a82af76675bb1e01f3680082015df103c06de3505d4a1aff878e
BLAKE2b-256 checksum
How to use checksums
c55dabe4206ba1cc3139f8af469e619ab35858c39b0637a5d2fe30c33a5128d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.4.9 CPython/3.9.13

Security for np-audio-control 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page