Skip to main content

AudioBox allows the user to play music and sound effects on any platform as long as you have the files.

Project description

AudioBox

AudioBox allows the user to play music and sound effects on any platform as long as you have the files.

Latest Updates:

  • Made sfx play in a seperate thread like music

Installation

Install via pip:

pip install audiobox

Example code:

from time import sleep as wait
from threading import Thread
from audiobox import generate_example_files, sfx, play_music, get_audio_length

# Generate example files
generate_example_files()

# Play sound effect
sfx("example_sfx", times=1, volume=0.5)
wait(get_audio_length("example_sfx"))

# Play music with looping enabled
play_music("example_music", stop_other=True, loop=True)

# Wait for the duration of the music
wait(get_audio_length("example_music"))

Links:

Website: https://tairerullc.vercel.app/

Contact 'tairerullc@gmail.com' for any inquires and we will get back at our latest expense. Thank you for using our product and happy coding!

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

audiobox-0.0.4.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

audiobox-0.0.4-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file audiobox-0.0.4.tar.gz.

File metadata

  • Download URL: audiobox-0.0.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for audiobox-0.0.4.tar.gz
Algorithm Hash digest
SHA256 ef680d01d24f64fd6e8f47b8e87406fa5af3b71a86b27e6eeb118def48483b20
MD5 cca9aef0bce000bbfa50b8a8f56353ce
BLAKE2b-256 1d6d502120f2209702825c78064ba68ea033d9c7357d7150d3ca94c8a8b85964

See more details on using hashes here.

File details

Details for the file audiobox-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: audiobox-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for audiobox-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7bb8a4041560529d93ec65c6d0950d656d76b8218daaedc956a6e4e1d1427b12
MD5 a17cf7bbfe52244f099a969666045a92
BLAKE2b-256 68571a01093415e2cc4251c6f7eae4ce14b63f38b384f68bd304d5f0e2bcfee1

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