Home Automation
eHouse can be controlled by voice using the appropriate libraries for Java , and they should be provided with the previously , since they are not available in the standard JDK.
Both synthesis and speech recognition (speech synthesis and recognition) can be achieved by supplying a Java Speech API (JSAPI) , which provides the necessary library :
- javax.speech.synthesis
- javax.speech.recognition
Synthesis and speech recognition for Java is developed in a number of open – source these projects eg. FreeTTS and Sphinx.
After downloading JSAPI eg. by FreeTTS.sourceforge.net we perform the following steps:
- Extract the contents of the pinched and go to the\FreeTTS\lib
- Run the file JSAPI.exe , click ” Yes ” , to extract JSAPI.ravine
- Find the directory , where the JRE, eg.C:\Java\jdk1.7.0_03\jre\lib\ext
- All files with the extension.jar file to this directory copy
- Copy the file speech.properties from the\FreeTTS to\jre\lib eg.C:\Java\jdk1.7.0_03\jre\lib\
- Restart Netbeans and and we can use the javax library.speech