Sep 04, 2020 Python 3.6, 3.7 or 3.8 or PyPy, including the Python development header files like python.h; C compiler (if compiling from source) You need a C compiler supported by setuptools, gcc will work fine on UNIX-like platforms. This is not needed on Windows if using the compiled packages provided. Download Python for Mac - A free, open source and high-level programming language that can be used for web, Internet and software development, desktop GUIs, science, education and more. Install using pip, either using the system python (python2.7), or an installed python from 3.5 to 3.7. Or install using Kivy.app: Python 3 123.0MB OSX 10.13.5 Python 2.
Released:
Pure Python, cross platform, single function module with no dependencies for playing sounds.
Project description
Pure Python, cross platform, single function module with no dependencies for playing sounds.
Installation
Install via pip:
Done.
If you insist on the (slightly) harder way of installing, from source,you know how to do it already and don’t need my help.
The latest version of the source code can be found at:https://github.com/TaylorSMarks/playsound
Quick Start
Once you’ve installed, you can really quickly verified that it works with just this:
Documentation
The playsound module contains only one thing - the function (also named) playsound.
It requires one argument - the path to the file with the sound you’d like to play. This may be a local file, or a URL.
There’s an optional second argument, block, which is set to True by default. Setting it to False makes the function run asynchronously.
On Windows, uses windll.winmm. WAVE and MP3 have been tested and are known to work. Other file formats may work as well.
On OS X, uses AppKit.NSSound. WAVE and MP3 have been tested and are known to work. In general, anything QuickTime can play, playsound should be able to play, for OS X.
On Linux, uses GStreamer. Known to work on Ubuntu 14.04 and ElementaryOSLoki. Support for the block argument is currently not implemented.
Requirements
I’ve only tested playsound it with Python 2.7 on Windows 7 and OS X 10.11, butI expect that it should work on Windows XP thru 10 at least, OS X 10.5 and newer,all versions of Linux, and Python 2.3 and newer.
Copyright
This software is Copyright (c) 2016 Taylor Marks <taylor@marksfam.com>.
See the bundled LICENSE file for more information.
Release historyRelease notifications | RSS feed
1.2.2
1.2.1
See All Results For This Question
1.2.0
1.1.0
1.0.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size playsound-1.2.2-py2.py3-none-any.whl (6.0 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes |
Hashes for playsound-1.2.2-py2.py3-none-any.whl
Download Python 3.7 For Laptop
Algorithm | Hash digest |
---|---|
SHA256 | 1e83750a5325cbccee03d6e751ba3e78c037ac95b95a3ba1f38d0c5aca9e1a34 |
MD5 | 30f7763f7ec70f351b0767eb71e289f3 |
BLAKE2-256 | f51610d897b0a83fb4b05b03a63d7a2667ab75f857f67f7062fd447dd3f49bf7 |