Sound player library
Project description
epsound
Minimalistic cross-platform library for playing sounds (from wav files).
- Works on Windows and Linux.
- Supports devices with architecture x86, x64 and arm.
- Provides minimal latency when starting and stopping sound playback.
- Suitable for adding sound effects to a device where you want to ensure maximum response speed.
Repository: https://github.com/EPC-MSU/epsound
Prerequisites
Your Linux system should have the following installed to successfully complete:
$ sudo apt-get install libasound2-dev
Installation
Installation is very simple:
pip install epsound
Working example
import time
import epsound
if __name__ == "__main__":
# Let's create object of class WavPlayer and add sound from file with name "one" to it
player = epsound.WavPlayer()
player.add_sound(file="sound.wav", name="one")
# Then let's play sound
player.play("one")
time.sleep(1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
epsound-0.1.1.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file epsound-0.1.1.tar.gz
.
File metadata
- Download URL: epsound-0.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/3.10.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c9e98e29a9b08d9bc8842b6e4e2f8c9535ffa323360ddc0e3579165c351ee83 |
|
MD5 | 4cb941d43c189d439f80f8926d752508 |
|
BLAKE2b-256 | 66bb6be46015750aa55038e32668e301434d8ad1e0b8e891bc5d3c076f772d20 |
File details
Details for the file epsound-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: epsound-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/3.10.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89b361789ac205831cae196d8bac08a62e1842fbd8424e173975aa7d7bc97772 |
|
MD5 | 340d6ae3c36fedf25ca338955f1c9d21 |
|
BLAKE2b-256 | 7bc858317f7dcf75b04618230765dd72770b8d90d72ecc6bea116f739e0447f6 |