Note: These pages are being reviewed.
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.
Although this is the only import you will need in your code a screen reader needs to be installed in the client running the code. To overcome this just make sure to add the following modules so they are available in your application:
If you want your application to be blind accessible just include Sappy dependencies. This is not magic but does a great work on common things in the IDE. Some dependencies like Text to Speech Options are really optional but they provide option panes to customize Sappy (i.e. selecting voice, etc).
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.
Apache Migration Information
The content in this page was kindly donated by Oracle Corp. to the Apache Software Foundation.
This page was exported from http://wiki.netbeans.org/DevFaqMakeItTalk , that was last modified by NetBeans user Javydreamercsw on 2011-09-19T18:21:04Z.
NOTE: This document was automatically converted to the AsciiDoc format on 2018-02-07, and needs to be reviewed.