Junyx's Blog

Thoughts, Experiments, and Discoveries

Created a Utility to Extract Urls

July 17, 2023 — ~junyx

I was exploring my IRC chatlogs and wanted a way to get all urls mentioned in all channels.

So, I created a small command line utility to extract urls from standard input: Check it out here

Usage:

command | python3 urls.py

tags: unix, github, commandline, linux, macos

Make your Mac speak

July 17, 2023 — ~junyx

On macOS you can use the say command to make your computer speak.

This can be used for a number of applications like reading articles or books and creating custom notifications.

Usage:

say "How are you?"

You can also add it to a pipeline:

echo "I'm fine" | say

To can the change the voice with the -v option:

say -v "Albert" "I have a frog in my throat"

Configuration

You can set the default voice in

System Preferences -> Accessibility -> Spoken Content -> System voice

Have fun and let me know what uses you find for this

tags: macos, commandline, texttospeech, frog