A wrapper around macOS afplay
Project description
afplay-py
A python wrapper and better CLI for the macOS tool afplay
(audio-file player).
Installation
From pip:
pip install afplay-py
From source (from the root project directory):
pip install .
Quick Usage
CLI
Play an audio file using the CLI:
afplay-py ~/path/to/file.mp3
NOTE: The intent is for this CLI to not have some of the problems the regular tool does.
Python
Play an audio file using Python:
from afplay import afplay
afplay("path/to/file.mp3", volume=2, time=100, leaks=True)
Check if afplay
is installed:
from afplay import is_installed
print(is_installed())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
afplay-py-0.2.1.tar.gz
(2.2 MB
view hashes)
Built Distribution
Close
Hashes for afplay_py-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2bbd2b7528394c6c43301e2db046b469cb0acd4689259e0a981f96908339646 |
|
MD5 | a042e4d925ce68c2a5e93d6c56c9e455 |
|
BLAKE2b-256 | 1048a71f4f7e05149e5eb846aa57177bc289733eaa883b4e418a5d0f454c66ef |