Adding a bit of Fun to my WordPress Themes Build Process

I recently learnt that when you type 'Say' followed by some words into the terminal on MacOS your computer speaks to you. It’s like I’m in the future or something.

I like the idea that my Mac is distantly related to Jarvis from Iron Man so I thought I would get it to talk to me during the build process. Since the build can take over 10 minutes its easy to start it running and forget it’s happening, so it’s helpful to get notifications that the different stages have completed.

Using Bash means it’s trivial to add the commands. I simply add some new lines that start with say in the positions that I want them to occur throughout the script.

I have updated the original post to show the code with the say commands included.

If you’re interested in using say in your own projects then there are a couple of parameters you can set. Mostly it’s just for changing the voice used. Theoretically you could setup your computer to have a conversation with itself since you can use different voices per line.

Unfortunately there’s no way (that I can see) to apply emphasis or other tonal variations to words or phrases – so the messages are all delivered in the same way – but it’s a nice start to making a complex process a bit more personal. And it means I know what’s happening without having to keep watching the Terminal.

Let me know what you think on Mastodon, or BlueSky (or Twitter X if you must).

Link to this page

Thanks for reading. I'd really appreciate it if you'd link to this page if you mention it in your newsletter or on your blog.

WordPress News

The latest WordPress updates from the WPBriefs Podcast.

Related Posts

29 Mar 2009

The future of WordPress themes

A couple of weeks ago there was quite a lot of talk within the WordPress themes community about the future of WordPress. Ian Stewart started it, and then it spread around the blogosphere… so I thought I’d offer my rather...
25 Mar 2012

Building Elemental 2: Getting Started

As I mentioned in February I had a conundrum – I wasn’t sure how to make changes to my theme Elemental without breaking peoples sites. Thankfully the people who read my site are super clever and suggested I create a...
20 Jul 2016

Empathy in Web Design

I wasn’t able to make WordCamp Europe this year, but they’ve been really quick at getting all of the talks online, and so I have been watching some of them – and this one stood out.Morten Rand-Hendriksen is an experienced...
13 May 2010

6 Tips to Build Better WordPress Themes

If you want to make WordPress themes, for clients, to release for free or to sell, then there are a lot of factors you need to take into consideration. Below are some hints and tips that should help ease your...
27 May 2013

WordPress: 10 Years Young, What Does The Future Hold?

WordPress is now 10 years old. I started using wordpress 9 years ago – which means I joined the WordPress community early on. The reason I chose WordPress is simply because of the fabled 5 minute install process – I...