Text to Speech on IRC
SpeechBot is a (very) simple IRC bot that connects to an IRC server and uses the FreeTTS speech synthesizer to read out loud all channel messages it receives.
Setting Up the SpeechBot
SpeechBot.java file and place it in a directory
structure that reflects its package name (
You will need to have the following JAR files in your
Compiling the Java SpeechBot
You will be able to compile the bot with something like:
javac -classpath .;./lib/pircbot.jar;./lib/freetts.jar org/jibble/speechbot/*.java
Running the Java SpeechBot
When you run the SpeechBot, you will have to tell it which server to connect
to and which channel to join. For example:
Make sure there are no spaces in your directory names, as FreeTTS seems to
have trouble reading itself when there is a space in the path. Note that
you must use
: instead of
; as a classpath
separator on Unix/Linux.
When the SpeechBot is up and running, you will hear it read every channel message it receives, rather like "Jibbler on #pie says: Hello". Modify the source code if you want it to output the speech in different ways.
!send command to get the bot to record a message as
a WAV file. The bot will send it to you via DCC file transfer. For example:
<Jibbler> !send how now brown cow
Here's an example ("I like pie"): SpeechBot-1081114233484.wav
This software product is OSI Certified Open Source Software, available under the GNU General Public License (GPL). Since the GPL may be too restrictive for use in proprietary applications, a commercial license is also provided.
Purchase a commercial license for this software.
Search this site
Copyright Paul Mutton 2001-2013