Skip to main content

Let your Python scripts speak updates out loud.

Project description

🔊 blurt

Speak your Python code aloud.
Cross-platform voice alerts for long-running tasks, decorators for completion, and built-in sound support.

PyPI version Build Status Documentation Status


✨ Features

  • 🗣️ say("text") — speak out messages
  • @notify_when_done() — decorator to announce task completion
  • 🔄 with speak(): — context manager to announce start and finish
  • 🔔 beep() and play_sound() — cross-platform alert sounds
  • 🧪 Fully tested on Windows, macOS, Linux
  • 🔇 Set BLURT_MUTE=true to silence everything but still log output

📦 Installation

Install with pip:

pip install blurt

Or with Pipenv:

pipenv install blurt

🚀 Quick Examples

from blurt import say, beep, notify_when_done, speak

say("This task has started")

@notify_when_done("All done!")
def compute():
    for i in range(3):
        print("Working...", i)

compute()

with speak("Start", "Finished"):
    # Do something long
    pass

beep()

📚 Full Documentation

📖 Read the full docs at blurtpy.readthedocs.io


🖥 Platform Notes

OS Voice Tool Sound Tool
macOS say afplay
Linux espeak / spd-say aplay
Windows pyttsx3 winsound

Linux users: You may need:

sudo apt install espeak aplay

🧪 Tests

This project is tested across:

  • ✅ Python 3.10
  • ✅ Windows / Linux / macOS (via GitHub Actions)
  • ✅ Manual sound tests via CI-supported environments

🧠 Environment Variables

Variable Description Example
BLURT_MUTE Mute voice output true

🔖 Version

Current release: 0.2.2


👨‍💻 Maintainers

Author: Buddheshwar Nath Keshari


📝 License

This project is licensed under the MIT License.

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

blurtpy-0.2.3.tar.gz (87.5 kB view details)

Uploaded Source

Built Distribution

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

blurtpy-0.2.3-py3-none-any.whl (60.7 kB view details)

Uploaded Python 3

File details

Details for the file blurtpy-0.2.3.tar.gz.

File metadata

  • Download URL: blurtpy-0.2.3.tar.gz
  • Upload date:
  • Size: 87.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for blurtpy-0.2.3.tar.gz
Algorithm Hash digest
SHA256 5682aaea780c772498b7bd1c040be28510df311b5541720d3f52f5f937cf11a0
MD5 4ad974bd36b2102577c15d65ba68a931
BLAKE2b-256 0a61d06ee1664e4431f497ee7a0b1301e0202da11db2d38930616ac61a6c185f

See more details on using hashes here.

File details

Details for the file blurtpy-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: blurtpy-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 60.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for blurtpy-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f35ebf970b9ffd086f5d213bb8be69d41abdb185e7722f39e688718e7fab3ace
MD5 6d7c5dde0f880f1b1b23f2e45d0c7a14
BLAKE2b-256 dd4f0c9a992b5ad43edd5bc6e01c3bdb6fca15a5649a0d609218c6d2c21f7eea

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