android - In Java how to say speak/read instead of println/system.in -
just curious know take me have human capability java programs. display message use system.out.println , read user's input may use system.in. wondering if there way me system.out.speak() , system.hear();
if not possible java i'm okay learn other languages please help.
wondering if there way me system.out.speak() , system.hear();
literally, no.
system.outprintwriter, there nospeak()method.- there no
system.hear()method. - adding such methods entail hacking on standard system classes ... making resulting library "not java(tm)".
furthermore, there no standard apis in java libraries text speech or speech text. (and i'm not aware of other language offers functionality standard feature.)
however, i'm sure if looked hard enough find 3rd-party tools doing integrated java, 1 way or another.
update
in fact, have found standard android (as distinct java) apis this:
- speech recognition:
android.speech - text speech:
android.speech.tts
from design perspective, think better idea support kind of thing in os's user interface framework (where user can control it), , not embed in individual applications.
Comments
Post a Comment