Socket
Socket
Sign inDemoInstall

audiotimer

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    audiotimer


Maintainers
1

Readme

Audio timer

Github: https://github.com/ARanch/audiotimer

This small program starts listening for an audio input on the system microphone. When a set audio level threshold is reached, a timer is started. When the audio level is reduced below the threshold, the timer is stopped after a short countdown, and the timespan is logged.

python -m pip install audiotimer

install requirements: pip install -r requirements.txt

Note: on Mac OS you need Portaudio installed, otherwise you will get the error ERROR: Failed building wheel for PyAudio. Install it using: brew install portaudio before installing requirements.

run using: python -m audiotimer

see -h flag for run-time options.

Eample usage: Run using a treshold of "50" and a buffertime of 30 seconds: python -m audiotimer -t 50 -b 30

Use case

The program is intended to be used as a way of testing the battery life of battery powered loudspeakers. Set the speaker to play a pink noise at a certain level, and leave a laptop with the speaker to listen for when it dies out.

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc