Skip to main content

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


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.11.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

epsound-0.0.11-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file epsound-0.0.11.tar.gz.

File metadata

  • Download URL: epsound-0.0.11.tar.gz
  • Upload date:
  • Size: 2.9 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

Hashes for epsound-0.0.11.tar.gz
Algorithm Hash digest
SHA256 78ec3d6cf2541ccdd91e8e0e852c7161981a56f339edb8f737dc7c13be25b411
MD5 878bc8034093ec7ed6e0c16bf99e8208
BLAKE2b-256 cab690fa7e9cf44ecad850ca7f76519cb4cce3d960a125d6c14488cf37399111

See more details on using hashes here.

File details

Details for the file epsound-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: epsound-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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

Hashes for epsound-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 b04e3ceec9cb6764379b70fecfac94512632b3ff6fb68b96dfdafa9def6ae7ff
MD5 310ac110eeb5ee03c14f83fb0384079c
BLAKE2b-256 ceca6d7652d4341a76ef1594f1552e0de18ab1e583e4cf641ff115f556ad5e2b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page