This post originated from an RSS feed registered with Java Buzz
by Vasanth Dharmaraj.
Original Post: FreeTTS: Text to Speech engine for Java
Feed Title: Vasanth Dharmaraj's Blogs
Feed URL: /SyndicationService.asmx/GetRssCategory?categoryName=Technology%7CJava
Feed Description: my thoughts on dot net, java, linux, formula one, xbox gamming...(my java category)
Last week I was writing a small tool at work to monitor a database table and alert
me if something goes wrong. It is a command line tool and I wanted it to attract my
attention. I tried showing a dialog but then I remembered talking
ant and FreeTTS. Since
I blogged about it I was thinking of trying it out. So I decided to make the tool
tell me if something is wrong.
Setting up and getting the tool to talk was surprisingly easy. I made the tool talk
with just four lines of code.
Voice
voice = VoiceManager.getInstance().getVoice("kevin16");
voice.allocate();
voice.speak("Something is wrong!");
voice.deallocate();
It does not get any easier than that. Pretty cool. Now I hope I don’t annoy
my colleagues with this. :-)