New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

playaudio

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

playaudio

Plays audio files on Windows/MacOS/Linux

pipPyPI
Version
1.0.5
Maintainers
1

playaudio

pip install playaudio

A cross platform solution for playing a sound in MacOS/Windows/Linux.

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.

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

Keywords

playaudio

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts