Skip to main content

Cross platform(ish) productivity commands written in python.

Reason this release was yanked:

bad name

Project description

playaudio

pip install playaudio

A no dependency, cross platform solution for playing a sound in MacOS/Windows/Linux. This repo was inspired by playsound, but less buggy, way less dependencies, better tested and simpler. Under the hood this package calls out to a subprocess to play the sound, so don't expect this package to win any performance benchmarks. If you like this library then give it star, so that others can find it.

MacOS_Tests Ubuntu_Tests Win_Tests

Linting

Install

Uses the built in system commands to play audio.

Usage

Python

from playaudio import playaudio
playaudio("my.mp3")  # blocks until sound is played.

Command line

> pip install playaudio
> playaudio "my.mp3"
> playaudio # plays an included bell.mp3 sound.

Develop

PR's are welcome!

To develop software git clone the repo then run . ./activate.sh

Windows

This environment requires you to use git-bash. This library expects a sound card to be installed. If you are running on a server then you will need to install a virtual sound card. See windows setup here.

Linting

Run ./lint.sh to find linting errors using pylint, flake8 and mypy.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

template-python-cmd-1.0.0.tar.gz (90.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

template_python_cmd-1.0.0-py2.py3-none-any.whl (82.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file template-python-cmd-1.0.0.tar.gz.

File metadata

  • Download URL: template-python-cmd-1.0.0.tar.gz
  • Upload date:
  • Size: 90.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for template-python-cmd-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6a3b4ed5937506e34ab7870efc0353f223ce1ba05de128679e97973d527b92d8
MD5 b31aed88163426f2ad3525d5dd0b20d3
BLAKE2b-256 ca08013213bfb935bab0e06cc7e8439b61644d6fad75e2fa7babf75817e25709

See more details on using hashes here.

File details

Details for the file template_python_cmd-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for template_python_cmd-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9b8c636f6c8ffd5579bc0b356b0868b0f1c74dcb60cfd472b2df0a1af287b890
MD5 8150eb0bb4a419ed9e259344a5b9c696
BLAKE2b-256 22bd137246914f75ae310244d4bd05e5b4b9e2164aeeb90f69e25e3bfab2cd9b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page