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 separate thread like play_music().
  • Added functions to manage playlists: remove_from_playlist() and clear_playlist().

Installation

Install via pip:

pip install audiobox

Example Code:

from time import sleep as wait
from audiobox import generate_example_files, sfx, play_music, get_audio_length, add_to_playlist, remove_from_playlist, clear_playlist, play_playlist

# Generate example files
generate_example_files()

# Play sound effect in a separate thread
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"))

# Manage playlist: Add, Remove, Clear
add_to_playlist("example_music")
play_playlist()
remove_from_playlist("example_music")
clear_playlist()

Links:

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

Contact 'tairerullc@gmail.com' for any inquiries, and we will get back to you at our earliest convenience. 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.5.tar.gz (5.4 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.5-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: audiobox-0.0.5.tar.gz
  • Upload date:
  • Size: 5.4 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.5.tar.gz
Algorithm Hash digest
SHA256 80006b04a53946af77d055fcc121f7890958c9b664545ef467b415f897d5a078
MD5 f46199327afc530456cdefc4eed04dfa
BLAKE2b-256 f7d16d6e0242043c78bdfb79a04e386231a8b9b5e056e0f03cd54726eea2dcb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: audiobox-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4d72443cfe8cdbfa58ade3f537ce412537338da361ab439565dd7192afb23424
MD5 be40ead809b67b1107965f6a97982da3
BLAKE2b-256 bc0728721d867ea3a98cb22c56f5f42536db99a617b47bf1fbf18c73d26dcb50

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