My Experiment with Text to Speech Opensource Project

Jaiminrathod
Oct 25, 2020

There are lots of opensource projects related to text to speech output in many languages. I used this opensource project for one experiment with a mac terminal. This opensource project is a shell script used for voice output for the given text.

So I thought to use this as fun with the zsh terminal, so I configured my terminal in such a way so that it gives voice error when the user runs a wrong command. So if you want to do the same with your mac zsh terminal use the below steps.

→ Download this script which is a part of the opensource project and store at any location. I stored it in the home directory with the name voice. Make this script executable by using chmod +x voice.

→ Now create a file bash.command-not-found in /etc directory. Put this in the file.

→ Add below content in your .zshrc file

if [ -f /etc/bash.command-not-found ]; then
. /etc/bash.command-not-found
fi

→ After it, run source .zshrc command and restart terminal. Your terminal ready to give an error through voice!!!

Below is a video demo of error using voice.

--

--