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.
✨ Features
- 🗣️
say("text")— speak out messages - ✅
@notify_when_done()— decorator to announce task completion - 🔄
with speak():— context manager to announce start and finish - 🔔
beep()andplay_sound()— cross-platform alert sounds - 🧪 Fully tested on Windows, macOS, Linux
- 🔇 Set
BLURT_MUTE=trueto 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5682aaea780c772498b7bd1c040be28510df311b5541720d3f52f5f937cf11a0
|
|
| MD5 |
4ad974bd36b2102577c15d65ba68a931
|
|
| BLAKE2b-256 |
0a61d06ee1664e4431f497ee7a0b1301e0202da11db2d38930616ac61a6c185f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f35ebf970b9ffd086f5d213bb8be69d41abdb185e7722f39e688718e7fab3ace
|
|
| MD5 |
6d7c5dde0f880f1b1b23f2e45d0c7a14
|
|
| BLAKE2b-256 |
dd4f0c9a992b5ad43edd5bc6e01c3bdb6fca15a5649a0d609218c6d2c21f7eea
|