I’m working on a new side-project I had the need for some text to speech functionality from a Linux command line. I found a program called Festival that seems to work pretty well. sudo apt-get install festival will get it for you on Ubuntu and will create a wav file named hello.wav that says “Hello, Festival” and then play it.
If you are banning IP addresses using Fail2ban, there is little need to unban them (unless you ban yourself accidentally). So I always set my ban time to infinite: The key here was to set bantime to a negative number. You might be interested in my post on parsing Fail2ban logs.