soundplay
=========
*playsound, but modern!*
Installation
------------
Install via pip:
.. code-block:: bash
$ pip install soundplay
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/paxcoder/soundplay
Quick Start
-----------
Once you've installed, you can really quickly verified that it works with just this:
.. code-block:: python
>>> from soundplay import playsound
>>> playsound('/path/to/a/sound/file/you/want/to/play.mp3')
Documentation
-------------
The soundplay is working like playsound. contains only one thing - the function ( 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 ElementaryOS Loki. I expect any Linux distro with a standard gnome desktop experience should work.
Copyright
---------
This software is Copyright (c) 2021 Taylor Marks <taylor@marksfam.com>.
See the bundled LICENSE file for more information.
Raw data
{
"_id": null,
"home_page": "",
"name": "soundplay",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "sound,playsound,music,wave,wav,mp3,media,song,play,audio",
"author": "Pax",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/0b/60/e49b68e41aebdc384b60a32c88c7821d2cb123a3c30d28ddc1e8c1094ed9/soundplay-1.3.1.tar.gz",
"platform": null,
"description": "soundplay\n=========\n*playsound, but modern!*\n\nInstallation\n------------\nInstall via pip:\n\n.. code-block:: bash\n\n $ pip install soundplay\n\nDone.\n\nIf you insist on the (slightly) harder way of installing, from source,\nyou know how to do it already and don't need my help.\n\nThe latest version of the source code can be found at:\nhttps://github.com/paxcoder/soundplay\n\nQuick Start\n-----------\nOnce you've installed, you can really quickly verified that it works with just this:\n\n.. code-block:: python\n\n >>> from soundplay import playsound\n >>> playsound('/path/to/a/sound/file/you/want/to/play.mp3') \n\nDocumentation\n-------------\nThe soundplay is working like playsound. contains only one thing - the function ( named) playsound.\n\nIt 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.\n\nThere's an optional second argument, block, which is set to True by default. Setting it to False makes the function run asynchronously.\n\nOn Windows, uses windll.winmm. WAVE and MP3 have been tested and are known to work. Other file formats may work as well.\n\nOn 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.\n\nOn Linux, uses GStreamer. Known to work on Ubuntu 14.04 and ElementaryOS Loki. I expect any Linux distro with a standard gnome desktop experience should work.\nCopyright\n---------\nThis software is Copyright (c) 2021 Taylor Marks <taylor@marksfam.com>.\n\nSee the bundled LICENSE file for more information.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "playsound, but more modern!",
"version": "1.3.1",
"project_urls": {
"Documentation": "https://github.com/TaylorSMarks/playsound/blob/master/README.rst",
"Homepage": "https://github.com/paxcoder/soundplay/",
"Issue tracker": "https://github.com/paxcoder/soundplay/issues",
"Repository": "https://github.com/paxcoder/soundplay"
},
"split_keywords": [
"sound",
"playsound",
"music",
"wave",
"wav",
"mp3",
"media",
"song",
"play",
"audio"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f7e7f9d751079a8b2792262b64feb087fa87358cce6772f57868996cab1bd180",
"md5": "8f63ca3f183baed00e11e3839f61e098",
"sha256": "c636ff6379ae35f7ad2fc2cbf85fe6a52da678f113c505450cbad727c4aad75d"
},
"downloads": -1,
"filename": "soundplay-1.3.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8f63ca3f183baed00e11e3839f61e098",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 6577,
"upload_time": "2023-11-18T20:51:26",
"upload_time_iso_8601": "2023-11-18T20:51:26.364660Z",
"url": "https://files.pythonhosted.org/packages/f7/e7/f9d751079a8b2792262b64feb087fa87358cce6772f57868996cab1bd180/soundplay-1.3.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0b60e49b68e41aebdc384b60a32c88c7821d2cb123a3c30d28ddc1e8c1094ed9",
"md5": "a91944bbff49022e683a626bf20659a0",
"sha256": "b02f14cad0e3d9904c1a9bc8ec54c70e90321a29d7041936779899d019e14942"
},
"downloads": -1,
"filename": "soundplay-1.3.1.tar.gz",
"has_sig": false,
"md5_digest": "a91944bbff49022e683a626bf20659a0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 530406,
"upload_time": "2023-11-18T20:51:28",
"upload_time_iso_8601": "2023-11-18T20:51:28.743606Z",
"url": "https://files.pythonhosted.org/packages/0b/60/e49b68e41aebdc384b60a32c88c7821d2cb123a3c30d28ddc1e8c1094ed9/soundplay-1.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-18 20:51:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "TaylorSMarks",
"github_project": "playsound",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"lcname": "soundplay"
}