Wrappers for the libcanberra sound-playing interface
Project description
py-canberra is a Python interface to the libcanberra sound-playing library for Linux.
Full documentation is available here
Dependencies
The only dependency is libcanberra, which can usually be installed from your package repository as libcanberra.
# Ubuntu
apt install libcanberra0
# RHEL / CentOS
yum install libcanberra
# Arch
pacman -S libcanberra
Installation
py-canberra includes binary distributions for many platforms through PyPI
pip install py-canberra
Quickstart
Oftentimes, if libcanberra is installed, some default system sounds will be installed to /usr/share/sounds, including a bell sound
import canberra
canberra.play(event_id='bell')
import time
time.sleep(0.5) # wait for the sound to finish playing
This plays /usr/share/sounds/freedesktop/stereo/bell.oga on the default output device.
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
Built Distributions
File details
Details for the file py-canberra-0.0.4.tar.gz
.
File metadata
- Download URL: py-canberra-0.0.4.tar.gz
- Upload date:
- Size: 75.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.8.0 tqdm/4.46.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f68edb740ed8cf46aac60b5b90bd01f1e6d3d8650ffe172cde23c5848a969f0 |
|
MD5 | 438514f1e7f56d96fea791add98d831c |
|
BLAKE2b-256 | f71fb49d083e782c51e802d0e24eddb74c158420dc303fa1c63a007b4e8c9a0b |
File details
Details for the file py_canberra-0.0.4-cp38-cp38-manylinux2014_x86_64.whl
.
File metadata
- Download URL: py_canberra-0.0.4-cp38-cp38-manylinux2014_x86_64.whl
- Upload date:
- Size: 249.2 kB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.8.0 tqdm/4.46.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59967df746730e2a798b40219eec7a2be3de0e977b55066f628e12928dda3283 |
|
MD5 | 3c2b5508305f250846e7f5cca6ca467a |
|
BLAKE2b-256 | 1a4a70c7594a85139bdac68c8ca298a754f1090af62a4bed3b2069cd22db6d46 |
File details
Details for the file py_canberra-0.0.4-cp38-cp38-manylinux2014_i686.whl
.
File metadata
- Download URL: py_canberra-0.0.4-cp38-cp38-manylinux2014_i686.whl
- Upload date:
- Size: 241.1 kB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.8.0 tqdm/4.46.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2a6ed75c9331bde5fe255ee4719922e546c487428292ce6dfe27bff52e26e00 |
|
MD5 | 854e9a306b84f426eec93ff7c03390a3 |
|
BLAKE2b-256 | 763399824fcb5ef3c5744bb6080b61137e9771dbaed6de87873102e7ee563433 |
File details
Details for the file py_canberra-0.0.4-cp38-cp38-manylinux1_i686.whl
.
File metadata
- Download URL: py_canberra-0.0.4-cp38-cp38-manylinux1_i686.whl
- Upload date:
- Size: 241.1 kB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.8.0 tqdm/4.46.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8b30f9c3fac56e4e6d59b0385da85687556870f6784422a341bd9bea63ff00f |
|
MD5 | b5d6a1798bc81678d088c5ce147ccd73 |
|
BLAKE2b-256 | 99844514f6dcf5226ab557336cf0de478ac1d0a6878e5cb80c175db81f699b0d |
File details
Details for the file py_canberra-0.0.4-cp37-cp37m-manylinux2014_x86_64.whl
.
File metadata
- Download URL: py_canberra-0.0.4-cp37-cp37m-manylinux2014_x86_64.whl
- Upload date:
- Size: 214.4 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.8.0 tqdm/4.46.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 900b1de9b3c9eae592e198ba7f087e021ae08d68eecbec00fffdb3e32395b974 |
|
MD5 | 86326ce8082dea17ff3de9a22240a490 |
|
BLAKE2b-256 | 03a1aa56cf85dbb93eb951124af3726b8ffda263d7a42bdaea17b8e9332dee21 |
File details
Details for the file py_canberra-0.0.4-cp37-cp37m-manylinux2014_i686.whl
.
File metadata
- Download URL: py_canberra-0.0.4-cp37-cp37m-manylinux2014_i686.whl
- Upload date:
- Size: 206.6 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.8.0 tqdm/4.46.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5398b6c8a63247f92f918a11d62d3e819a598a5e216417d7da7c37aaa04f630 |
|
MD5 | d98896e78be655fa37bc392d005e2f9e |
|
BLAKE2b-256 | bab41a6ce07ba8eeda2b2534fa048b7727d15fc49984d05eca99c3d8b6772e45 |
File details
Details for the file py_canberra-0.0.4-cp37-cp37m-manylinux1_i686.whl
.
File metadata
- Download URL: py_canberra-0.0.4-cp37-cp37m-manylinux1_i686.whl
- Upload date:
- Size: 206.6 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.8.0 tqdm/4.46.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ad35a41cefd8117316efa1e46d4242599d9af2e2d40f93a843a05d7ee7d09cd |
|
MD5 | aa40c87cf7a7e86aeec35bb9cbadbae1 |
|
BLAKE2b-256 | 214fcb97a25d80a81ffc1543c94b874a56d16ebf29ca54b5d207136bdb53723b |
File details
Details for the file py_canberra-0.0.4-cp36-cp36m-manylinux2014_x86_64.whl
.
File metadata
- Download URL: py_canberra-0.0.4-cp36-cp36m-manylinux2014_x86_64.whl
- Upload date:
- Size: 213.7 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.8.0 tqdm/4.46.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a3fb1f3a3cc11cb546836d55b8bd9ce6800b67c6273d95084e46ba308d0467a |
|
MD5 | 56a11c00b301c1503efa8e3077e204e9 |
|
BLAKE2b-256 | 7fce97985bf5a78ffe9844c0440ca5d34881e005befcaa3f70fa37b1c92f0dd9 |
File details
Details for the file py_canberra-0.0.4-cp36-cp36m-manylinux2014_i686.whl
.
File metadata
- Download URL: py_canberra-0.0.4-cp36-cp36m-manylinux2014_i686.whl
- Upload date:
- Size: 206.1 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.8.0 tqdm/4.46.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5640a8a200ea580c52563d41391bb7ccb3a0cf33aa439193f664e1536032ac20 |
|
MD5 | 4dcdd9d1ad5744de55b83e93f9b12c0a |
|
BLAKE2b-256 | 1fcba8bbf5eda2a2db27fa5aade9679f9ba95a30fcbae26864f1cd70626aa395 |
File details
Details for the file py_canberra-0.0.4-cp36-cp36m-manylinux1_i686.whl
.
File metadata
- Download URL: py_canberra-0.0.4-cp36-cp36m-manylinux1_i686.whl
- Upload date:
- Size: 206.1 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.8.0 tqdm/4.46.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 196934e7be81be96f7d34918e23d02c9e1609d4dbb24a7bf69da56d7a373ea59 |
|
MD5 | 95e41806aca7a24117a23e9e0f49fabd |
|
BLAKE2b-256 | 73aaaf720c8e098570942ce8190e7e5c91bea1044568afb865a72ecefa259b62 |