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.4.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.4-py3-none-any.whl (60.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: blurtpy-0.2.4.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.4.tar.gz
Algorithm Hash digest
SHA256 15d00920fc98a7283c567e01587ef86434d226fc1c0f97348e9c28a31b46e5a5
MD5 266c0ff599a68399c2e76c925fe95c3a
BLAKE2b-256 091e3c1b3e0cd3debcb7b56f884ba70b52e46286e3cc6d8b24a96ec2636e4b65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blurtpy-0.2.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c9d4819ab578de50011692ab375ed9863c5a05c5e7702a25279e18a0f78155ac
MD5 6bbf55a787a2b0119fe5df671ed2e413
BLAKE2b-256 5cbc1e469bbf19426bf9b3caa35fceddcfae7c17250878744164e0a0723851ba

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