Java Speech API problem very beginner
Hello. I am a Rookie in Java.. I have only learnt to use basic functions in Java... Now I am trying to handle API's and I am in a miserable condition.
I have to work with Java Speech API for my project. I downloaded the necessary files from FREE TTS, copied the required jar files to jre folders as specified. Now I want to run a Hello World code that outputs Hello Wolrd in voice in Eclipse or Netbeans. I opened a new project in Netbeans and I dont have a single freaking Idea where to put the code to run it.. and how to run it...
It's embarrasing but.. Its the first time i am using API's so... HELP PLEASE.
The JSAPI jar fiels as visible in Netbeans Project ->Properties->Libraries////.
Please help me move forward.
Thanks!!
Re: Java Speech API problem very beginner
Chances are you've used an API, you just haven't known it. Have you used System.out.println()? If so, you've used an API.
Using a third party library is exactly like using a standard Java library. You have to import whatever you want to use, then you have to write code that calls it. How exactly you do that is going to depend on the library. You might have to create an instance and invoke methods on that, or you might have access to static functions that you can call directly.
Step one is to consult the basic tutorials for whatever library you're using.
Re: Java Speech API problem very beginner
Hehe.. I really feel stupid right now... As I was reading your comment I realized I tried to start writing programs with unfamiliar APIs before reading the basics.. I Freaked out actually when I couldnot compile the programs.. I think I have started to sort out my problems when I am approaching it with patience... Thank you!!
Re: Java Speech API problem very beginner
this is not to your question but a little piece of advice...i am also pretty beginner and i have learned that if you are freaking out or upset to stop for a few minutes and calm down then think logically about what you want to do and how you can learn or figure how to do it :D im finally learning how to use layout managers getting everything how i want. when i first started learning how to use them i was wishing i had hair on my head to rip out lol :D and good luck with your project