DevFaqMakeItTalk

(Difference between revisions)
(Created page with 'I know it sounds crazy but it is not. It came up as an idea after knowing Andreas Stefik and the [http://sodbeans.sourceforge.net/ SodBeans] project, which provides accessibility…')
Line 1: Line 1:
-
I know it sounds crazy but it is not. It came up as an idea after knowing Andreas Stefik and the [http://sodbeans.sourceforge.net/ SodBeans] project, which provides accessibility for the blind in the IDE. It's such a huge thing for people like me that have taught blind people to program with almost nothing to work with. I can tell you for sure that [http://sodbeans.sourceforge.net/ SodBeans] back then would have made a difference for me and for that student.
 
-
 
-
Time has passed life changed routes but SodBeans is still stuck in my mind. Then I asked Andreas about using SodBeans for something else and it turned out that the application is so well designed that is modular enough to use it anywhere else. And better yet really easy to use!
 
-
 
-
Currently I'm working in a personal project [http://java.net/projects/simple-marauroa Simple Marauroa] which is a NetBeans RCP application to use [https://sourceforge.net/projects/arianne/ Marauroa], a game engine, in RCP application. This is background work to port my game [https://sourceforge.net/projects/jwrestling/ jWrestling] to an RCP application due to some design issues the platform is helping me with.
 
-
 
-
[https://sourceforge.net/projects/arianne/ Marauroa] main implementation is [http://arianne.sourceforge.net/ Stendahl] a MMORPG. Thinking about that, and my plans to make a D20 engine using [https://sourceforge.net/projects/arianne/ Marauroa] one word came to my mind, Story Telling, well that's actually two...
 
-
 
First add a dependency to [https://sourceforge.net/projects/phonemic/ Phonemic], the library that does the magic, which is conveniently wrapped within the SodBeans modules. Here's the [http://sodbeans.sourceforge.net/downloads/updates/sappy/updates.xml update center for SodBeans].
First add a dependency to [https://sourceforge.net/projects/phonemic/ Phonemic], the library that does the magic, which is conveniently wrapped within the SodBeans modules. Here's the [http://sodbeans.sourceforge.net/downloads/updates/sappy/updates.xml update center for SodBeans].
-
From there you can think about characters, wrestling commentators, and the list goes on. And the only thing you need is two lines of code:
+
The only thing you need is two lines of code:
<pre>
<pre>
TextToSpeech speech = TextToSpeechFactory.getDefaultTextToSpeech();
TextToSpeech speech = TextToSpeechFactory.getDefaultTextToSpeech();
Line 16: Line 8:
This call also already handles making your calls thread safe and is efficient enough to handle thousands of TTS "requests" in rapid succession.
This call also already handles making your calls thread safe and is efficient enough to handle thousands of TTS "requests" in rapid succession.
-
And your application talks. So you can pass a sentence of a history, some commentator phrases, you name it! And if your application creates those at run time you have an application that can speak without using pre-recorded sounds! Since [https://sourceforge.net/projects/phonemic/ Phonemic] is a plain jar you can use it out of the platform as well.
+
And your application talks. Since [https://sourceforge.net/projects/phonemic/ Phonemic] is a plain jar you can use it out of the platform as well.
-
 
+
-
Then you can think about changing voices and stuff like that, already supported by SodBeans, but that's another article. I'll start playing with that and keep you posted.
+
You can read more about Phonemic [https://sourceforge.net/apps/trac/phonemic/ here].
You can read more about Phonemic [https://sourceforge.net/apps/trac/phonemic/ here].

Revision as of 18:13, 19 September 2011

First add a dependency to Phonemic, the library that does the magic, which is conveniently wrapped within the SodBeans modules. Here's the update center for SodBeans.

The only thing you need is two lines of code:

TextToSpeech speech = TextToSpeechFactory.getDefaultTextToSpeech();
speech.speak("Hello, World!");

This call also already handles making your calls thread safe and is efficient enough to handle thousands of TTS "requests" in rapid succession.

And your application talks. Since Phonemic is a plain jar you can use it out of the platform as well.

You can read more about Phonemic here.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo