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: PyPI version


👨‍💻 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.5.tar.gz (1.3 MB 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.5-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for blurtpy-0.2.5.tar.gz
Algorithm Hash digest
SHA256 38347b3ddea176263d82ea275346fdc459d268b7f7cd930ca54b337392a61e9e
MD5 ce823b65b6a72613ef743ec0161eae48
BLAKE2b-256 66ebabd7156162e8d9504459d8b4ac6be2aeefb349e7b210800ed13dfe669b9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blurtpy-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6f318faccf5997f69180cb4f0ff626af73047f7ed15600dec0f875ef292e6a6c
MD5 c5bb3d94f682e86af4ca1a8381338146
BLAKE2b-256 44ce75a0e715034cab4bf9965157be73319822f8196e2bcd3f028bbccbb98306

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