Plays audio files on Windows/MacOS/Linux
Project description
playaudio
pip install playaudio
A no dependency, cross platform solution for playing a sound in MacOS/Windows/Linux.
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
.
Releases:
- 1.0.4: Windows: Supports playing mp3 files
- 1.0.3: Adds ignore_errors=True for playaudio()
- 1.0.2: BELL_FILE -> BELL_MP3
- 1.0.1: Fix readme
- 1.0.0: Initial release
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
playaudio-1.0.4.tar.gz
(87.9 kB
view hashes)
Built Distribution
Close
Hashes for playaudio-1.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce391cda6df5334c4dcb156d6de8eca163b3491a30e58bbba414ec791d25734f |
|
MD5 | 350ee5e0ce9db7e77377f35ac1d1018d |
|
BLAKE2b-256 | a865b6d64178af53435779bfea8ca9984c7aa261aba494c5b7bfd1716f08c844 |