Skip to main content

Pibooth plugin to add sound effects.

Project description

Python 3.6+ PyPi package PyPi downloads

pibooth-sound-effects is a plugin for the pibooth application.

It adds sound effects to the application:

  • When pressing on the first menu –> click

  • When selecting a layout –> click

  • During the countdown –> countdown

  • When entering the “thank you” menu –> applause

Sounds can be customized (see below).

Install

$ pip3 install pibooth-sound-effects

Configuration

Here below the new configuration options available in the pibooth configuration. The keys and their default values are automatically added to your configuration after first pibooth restart.

[SOUNDS]

# Path to the sounds folder
sounds_path = ~/.config/pibooth/sounds

Customize sounds

Sound files shall be .wav and have the name of the state in which it shall be played (e.g. {state}.wav). If you want to play the sound in loop, just add “_loop” in the name (e.g. {state}_loop.wav).

For example at the print level: - if it exists, the sound named print.wav will be played once, when entering the state - if it exists, the sound named print_loop.wav will be played in loop until the state is left.

Custom sounds can be added by adding or replacing existing sound files of the sounds folder (by default ~/.config/pibooth/sounds) with custom ones.

Specific features

In addition to the standard {state}.wav and {state_loop}.wav states, other sound files are accepted in preview state:

  • if you have a preview sound (preview.wav file), then it will play when entering the state,

  • if you want to play the same sound for each time of the countdown, name it as preview_countdown.wav,

  • if you want to play different sounds for each time of the countdown, simply add corresponding files in the sound folder (e.g.: 3.wav, 2.wav, 1.wav)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pibooth_sound_effects-0.0.4-py2-none-any.whl (936.3 kB view details)

Uploaded Python 2

File details

Details for the file pibooth_sound_effects-0.0.4-py2-none-any.whl.

File metadata

  • Download URL: pibooth_sound_effects-0.0.4-py2-none-any.whl
  • Upload date:
  • Size: 936.3 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.3

File hashes

Hashes for pibooth_sound_effects-0.0.4-py2-none-any.whl
Algorithm Hash digest
SHA256 2a4f9614ef9805f0642441bb909bfd5f932a4c849801cdcdfadc8c5d4b93136e
MD5 0828bff4b2c5d4cb5a94d14842c31d0f
BLAKE2b-256 22589b3c52f049e1e17157c2af814e400c848dcabc867b9bd751c0426c83ddc5

See more details on using hashes here.

Supported by

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