Giter Site home page Giter Site logo

playaudio's Introduction

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

playaudio's People

Contributors

zackees avatar

Stargazers

Calvin F avatar Jesse Hitch avatar  avatar

Watchers

 avatar

playaudio's Issues

No dependency?

Seems like it's not as it said.
There are dependency on 10.5Mb pygame.

>pip install playaudio
Collecting playaudio
  Downloading playaudio-1.0.4-py2.py3-none-any.whl (81 kB)
     ---------------------------------------- 81.7/81.7 kB 1.1 MB/s eta 0:00:00
Collecting pygame
  Downloading pygame-2.3.0-cp311-cp311-win_amd64.whl (10.5 MB)
     ---------------------------------------- 10.5/10.5 MB 8.1 MB/s eta 0:00:00
Installing collected packages: pygame, playaudio
Successfully installed playaudio-1.0.4 pygame-2.3.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.