playaudio
pip install playaudio
A 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
Metadata
Release files for playaudio 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| playaudio-1.0.5.tar.gz | 87.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| playaudio-1.0.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 169.6 kB
Release files / playaudio-1.0.5.tar.gz
| Download URL | playaudio-1.0.5.tar.gz |
|---|---|
| Size | 87.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f862502f096a127783ccfba61fdd0703324f715f15433581900dc1045479bce6
|
|
BLAKE2b-256 checksum How to use checksums |
af2c4ac6f89730627313a7dd63a7a1740cdef5bbcc865abc871c68cce623d619
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / playaudio-1.0.5-py2.py3-none-any.whl
| Download URL | playaudio-1.0.5-py2.py3-none-any.whl |
|---|---|
| Size | 81.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ef7d33bdbdbd682452d4f2522a4e92bf8190a87077a4e33b635f2c095b4cd246
|
|
BLAKE2b-256 checksum How to use checksums |
33be140a909687d23d0bceb606a3c42f98efb34e758d3edd38dd48feb3d21893
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|