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.13.tar.gz
(3.0 kB
view hashes)