Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Java Speech API problem very beginner

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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!!


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default 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.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Jul 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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!!

  4. #4
    Member
    Join Date
    May 2011
    Location
    west palm beach, FL
    Posts
    189
    My Mood
    Tired
    Thanks
    41
    Thanked 11 Times in 10 Posts

    Default 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 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 and good luck with your project

Similar Threads

  1. Replies: 10
    Last Post: October 26th, 2011, 02:22 PM
  2. Beginner Problem
    By Melvrick in forum What's Wrong With My Code?
    Replies: 2
    Last Post: August 15th, 2011, 12:29 PM
  3. Speech Recognition: javax.speech.recognition
    By Rapunzel in forum What's Wrong With My Code?
    Replies: 0
    Last Post: June 16th, 2011, 09:10 AM
  4. Beginner Problem
    By nve5009 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 19th, 2010, 11:29 AM
  5. java sun speech api
    By zulqar in forum AWT / Java Swing
    Replies: 1
    Last Post: November 2nd, 2010, 01:35 AM

Tags for this Thread