简体   繁体   中英

java voice command

I'm still pretty new to java and I was thinking about making a program where the computer could listen to you talking and write what you said on word or something using the java Robot. Honestly, I have no idea where to start with this and could really use some help on this. Also, I was looking around on my computer and noticed that it does have a voice engine of some sort, is there a way I could implement that into my program?

Thanks in advance

If you want to tap into your dictation software's facilities and hook them into your Java program, then start by taking a look at the JavaSpeech API or the Microsoft Speech API along with the Java Native Interface (JNI). The latter isn't a simple project for a beginner. The former, if your dictation software is compatible, could be something in the order of a few weeks of work for a relative beginner.

For making the dictated speech appear in Word or other external program, it's not clear to me where your Java program would fit in here: your dictation software will natively provide the facility of dictating to whatever the currently active window is, presumably.

Speech Recognition is a complex programming to understand. as you are a beginner go head and see Sphinx4 for recognition written entirely in java and FreeTTS as Synthesizer written entirely in java. first make a simpler recognizer then you can think of Dictation using JNI

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM