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.3.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file epsound-0.0.3.tar.gz
.
File metadata
- Download URL: epsound-0.0.3.tar.gz
- Upload date:
- Size: 2.3 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.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3614ed5b62e78e078ba8a3107eafbb7d7041b6ded6835111105dc8596d3fb23 |
|
MD5 | 07593c2d3ef574066b33719de9ce0f6d |
|
BLAKE2b-256 | 0223fa1f0976d5d80d03ed773f30fd55081ffbeeb2c31d176d39978e486a5972 |
File details
Details for the file epsound-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: epsound-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.4 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/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b116e8abd7bc4c9effb05abfc8728c6b62ba6d0f3a0ae428f60fb13fb9f3b0da |
|
MD5 | ba4c6966b2db819e9e48d5b62a3ebec9 |
|
BLAKE2b-256 | 5d2aca7db0ea8dedfb39feebadea21d3a21418d69e1fc03e01061396ef085898 |