Skip to main content

AudioBox

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

Latest Updates:

  • Added custom file paths for audio (optional)

Installation

Install via pip:

pip install audiobox

Example Code:

from time import sleep as wait
import audiobox

# Generate example files
audiobox.generate_example_files()

# Play sound effect in a separate thread
audiobox.sfx(filename="example_sfx", times=1, volume=0.5)
wait(audiobox.get_audio_length(filename="example_sfx"))

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

# Wait for the duration of the music
wait(audiobox.get_audio_length(filename="example_music"))

# Manage playlist: Add, Remove, Clear
audiobox.add_to_playlist(filename="example_music")
audiobox.play_playlist()
audiobox.remove_from_playlist(filename="example_music")
audiobox.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!

Metadata

Release files for audiobox 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for audiobox 0.0.6
File Size Uploaded
audiobox-0.0.6.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for audiobox 0.0.6
File Interpreter ABI Platform
audiobox-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / audiobox-0.0.6.tar.gz

Download URL audiobox-0.0.6.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
481ce60d0b0775f79b7301dd35041515263c577ef25dd2a0d3dbff7ac4bff3e2
BLAKE2b-256 checksum
How to use checksums
e8c2a68de69dabf24202311466f883b740a96b0b7731bd42fb6a46cdec051b81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.13.0

Release files / audiobox-0.0.6-py3-none-any.whl

Download URL audiobox-0.0.6-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e29f7adc6b7b95c2a2d5e61fed525345bfa5f2af95df43b664164923326cfe5
BLAKE2b-256 checksum
How to use checksums
d7e7dec9562a9964fc39ff4844007cade3eb34813ecd5903f6269024742b855f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.13.0

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page