Skip to main content

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


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)

Uploaded Source

Built Distribution

afplay_py-0.2.1-py3-none-any.whl (7.0 kB view hashes)

Uploaded Python 3

Supported by

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