Skip to main content

HoloWave

Overview

HoloWave is a modern, thread-safe audio playback manager for Python applications. It provides robust, low-latency sound signaling, channel management, and cross-platform fallbacks for automation, agent systems, and productivity tools.

Highlights:

  • Low-latency sound playback: Instantly play any supported audio file with minimal delay.
  • Thread-safe singleton: Designed for multi-threaded, interactive, or automated applications.
  • Custom sound mapping: Associate sounds with keys or events for rapid notification and feedback.
  • Automatic cross-platform fallback: Produces a system beep if audio hardware or files are unavailable.
  • Flexible channel management: Control mixer channels, output routing, and concurrency with ease.

Why HoloWave?

Standard sound modules are often limited to blocking playback, lack robust error handling, or require boilerplate for channel management.

HoloWave solves these problems by:

  • Providing a centralized, extensible interface for all sound playback.
  • Robust error handling and fallback signaling on any OS.
  • Supporting channel-based playback for overlapping or grouped sounds.
  • Ensuring safe operation in multi-threaded or interactive environments.

Key Features

  • Simple Sound Playback: Play any loaded audio file by key, with non-blocking channel control.

  • Cross-Platform Support: Uses pygame for playback, with built-in system beep fallback.

  • Custom Sound Mapping: Map sound files to any integer or string keys for quick event-driven playback.

  • Thread-Safe Singleton: Safe to use across threads or in long-running service applications.

  • Robust Error Handling: Handles missing files, mixer errors, and hardware issues gracefully.


How It Works

  1. Instantiate HoloWave in your Python application.
  2. Map sounds to keys or events in your app logic.
  3. Trigger playback by calling getSound(key) from any thread or event handler.
  4. Automatically falls back to system beep if playback fails.

FAQ

Q: Does HoloWave require a specific folder or class naming? A: No. Organize your project and sound files as you see fit.

Q: Can I use HoloWave for overlapping or concurrent sounds? A: Yes. Channel management allows for multiple simultaneous sounds.

Q: Is HoloWave thread-safe and production-ready? A: Yes. The singleton implementation and locking ensure safe use in all environments.


Code Examples

You can find code examples on my GitHub repository.


License

This project is licensed under the Apache License, Version 2.0. Copyright 2025 Tristan McBride Sr.


Acknowledgments

Project by:

  • Tristan McBride Sr.
  • Sybil

Release files for HoloWave 0.1.1

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

Source distribution (sdist)

Source distribution for HoloWave 0.1.1
File Size Uploaded
holowave-0.1.1.tar.gz 4.4 kB Details

Built distribution (wheel)

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

Total release size: 8.6 kB

Release files / holowave-0.1.1.tar.gz

Download URL holowave-0.1.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f704997fe1652f825cdead1b78423828034efd14d7ee698c9378f4bfbe801859
BLAKE2b-256 checksum
How to use checksums
c9537c52850f8fbfb08c358d8e4db20e621f29a7141fe4bd089e97362d7001d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release files / holowave-0.1.1-py3-none-any.whl

Download URL holowave-0.1.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be27ba92d98ebd293ca715121e293c947d11378a1020b70bcba1922241ef5ecd
BLAKE2b-256 checksum
How to use checksums
d72d18f4ddba5546c49e90a604a468b0f4ff349e41353cc9cf7d65cdab74ed96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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