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 epsound
import time
if __name__ == "__main__":
# Let's create object of class WavPlayer and add sound from file with name "one" to him
p = epsound.WavPlayer()
p.add_sound(file="sound.wav", name="one")
# Then let's play sound 1 sec
p.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.0.7.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file epsound-0.0.7.tar.gz
.
File metadata
- Download URL: epsound-0.0.7.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f76030997dc377772756a8886dd6697ef0fc89265fd86079bcbd5e4daee143b |
|
MD5 | 564677ec5fedae0cb36532fcd023e4b3 |
|
BLAKE2b-256 | b3a6bdd16752f44b0ce4277b8fbb38e06acaa315ecc1afdc8ad9e44b614ffe20 |
File details
Details for the file epsound-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: epsound-0.0.7-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e13939b90c40ef2b32c340772eae84be5ef2a250472059da35de7984cf664a38 |
|
MD5 | ff2ecb798165bb3468066a204612c89c |
|
BLAKE2b-256 | 86c9b041467f478150f408383af60aedbc84fd581b548aee3f9c860ed6fc4aad |