Results 1 to 4 of 4

Thread: Speech API

  1. #1
    paulth is offline Member
    Join Date
    Sep 2014
    Posts
    2
    Rep Power
    0

    Default Speech API

    I'm trying to run a "HelloWorld" example, it starts with
    -----------
    import javax.speech.*;
    import javax.speech.recognition.*;
    import java.io.FileReader;
    import java.util.Locale;

    public class HelloWorld extends ResultAdapter {
    ------------

    but ResultAdapter is undefined. A few lines down there is

    ------------
    rec = Central.createRecognizer(.....
    ------------

    Central is likewise undefined? TIA, Paul

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    25

    Default Re: Speech API

    You need to start here.

    And since there's nothing remotely advanced about this question, I'm moving it to the appropriate section.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    Ronin is offline Senior Member
    Join Date
    Oct 2010
    Posts
    393
    Rep Power
    9

    Default Re: Speech API

    Hi paulth, welcome to the forums.

    The speech API is not part of the standard JDK so has to be obtained from a third party. See the Java Speech API FAQs for details.

    Regards.

  4. #4
    paulth is offline Member
    Join Date
    Sep 2014
    Posts
    2
    Rep Power
    0

    Default Re: Speech API

    I've got jsr-113.-0.5.1 added to my project and it builds OK. I was hoping for sample code, the sample I have must be for an earlier version. I see that others have made the same request without getting an answer, but there is sarcasm:-)

Similar Threads

  1. Speech To Text
    By jyothi.priyanka in forum Advanced Java
    Replies: 1
    Last Post: 12-04-2011, 11:44 AM
  2. Java Speech API
    By JavaCy in forum New To Java
    Replies: 1
    Last Post: 04-29-2011, 05:09 PM
  3. Speech Recognition
    By jyothi.priyanka in forum New To Java
    Replies: 2
    Last Post: 03-22-2011, 05:18 AM
  4. Text To Speech
    By jyothi.priyanka in forum Advanced Java
    Replies: 0
    Last Post: 02-24-2011, 05:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •