java speech implementation

Discussion in 'Java' started by focode, Nov 18, 2008.

  1. focode

    focode Guest

    i am working on demos provided by FreeTTs website , when i am
    compiling the program i am getting the following errors

    i have set the path , pls also tell me that will i have to set the
    class path of all the jar file provided by the freetts , if possible
    also tell the difference between classpath and path attribute of
    windows environment variables

    other free demos for speech to text and text to speech in java will be
    highly appreciated abd help full to me

    here is the error list

    C:\test>d:

    D:\arunesh\software\freeTTs\freetts-1.2.1\demo\JSAPI\HelloWorld>javac
    HelloWorld
    ..java
    HelloWorld.java:12: package javax.speech does not exist
    import javax.speech.Central;
    ^
    HelloWorld.java:13: package javax.speech does not exist
    import javax.speech.Engine;
    ^
    HelloWorld.java:14: package javax.speech does not exist
    import javax.speech.EngineList;
    ^
    HelloWorld.java:15: package javax.speech.synthesis does not exist
    import javax.speech.synthesis.Synthesizer;
    ^
    HelloWorld.java:16: package javax.speech.synthesis does not exist
    import javax.speech.synthesis.SynthesizerModeDesc;
    ^
    HelloWorld.java:17: package javax.speech.synthesis does not exist
    import javax.speech.synthesis.SynthesizerProperties;
    ^
    HelloWorld.java:18: package javax.speech.synthesis does not exist
    import javax.speech.synthesis.Voice;
    ^
    HelloWorld.java:69: cannot find symbol
    symbol : class SynthesizerModeDesc
    location: class HelloWorld
    SynthesizerModeDesc required = new SynthesizerModeDesc(
    ^
    HelloWorld.java:69: cannot find symbol
    symbol : class SynthesizerModeDesc
    location: class HelloWorld
    SynthesizerModeDesc required = new SynthesizerModeDesc(
    ^
    HelloWorld.java:80: cannot find symbol
    symbol : class EngineList
    location: class HelloWorld
    EngineList engineList = Central.availableSynthesizers
    (required);
    ^
    HelloWorld.java:80: cannot find symbol
    symbol : variable Central
    location: class HelloWorld
    EngineList engineList = Central.availableSynthesizers
    (required);
    ^
    HelloWorld.java:83: cannot find symbol
    symbol : class SynthesizerModeDesc
    location: class HelloWorld
    SynthesizerModeDesc desc = (SynthesizerModeDesc)
    engineList.get(i);
    ^
    HelloWorld.java:83: cannot find symbol
    symbol : class SynthesizerModeDesc
    location: class HelloWorld
    SynthesizerModeDesc desc = (SynthesizerModeDesc)
    engineList.get(i);
    ^
    HelloWorld.java:87: cannot find symbol
    symbol : class Voice
    location: class HelloWorld
    Voice[] voices = desc.getVoices();
    ^
    HelloWorld.java:122: cannot find symbol
    symbol : class SynthesizerModeDesc
    location: class HelloWorld
    SynthesizerModeDesc desc = new SynthesizerModeDesc(
    ^
    HelloWorld.java:122: cannot find symbol
    symbol : class SynthesizerModeDesc
    location: class HelloWorld
    SynthesizerModeDesc desc = new SynthesizerModeDesc(
    ^
    HelloWorld.java:128: cannot find symbol
    symbol : class Synthesizer
    location: class HelloWorld
    Synthesizer synthesizer = Central.createSynthesizer(desc);
    ^
    HelloWorld.java:128: cannot find symbol
    symbol : variable Central
    location: class HelloWorld
    Synthesizer synthesizer = Central.createSynthesizer(desc);
    ^
    HelloWorld.java:145: cannot find symbol
    symbol : class SynthesizerModeDesc
    location: class HelloWorld
    desc = (SynthesizerModeDesc) synthesizer.getEngineModeDesc
    ();
    ^
    HelloWorld.java:146: cannot find symbol
    symbol : class Voice
    location: class HelloWorld
    Voice[] voices = desc.getVoices();
    ^
    HelloWorld.java:147: cannot find symbol
    symbol : class Voice
    location: class HelloWorld
    Voice voice = null;
    ^
    HelloWorld.java:166: cannot find symbol
    symbol : variable Synthesizer
    location: class HelloWorld
    synthesizer.waitEngineState(Synthesizer.QUEUE_EMPTY);
    ^
    22 errors

    D:\arunesh\software\freeTTs\freetts-1.2.1\demo\JSAPI\HelloWorld>
     
    focode, Nov 18, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mobini
    Replies:
    2
    Views:
    1,080
    a_shenavandeh
    Jun 20, 2005
  2. Roedy Green

    Re: Speech recognation with Java

    Roedy Green, Aug 11, 2003, in forum: Java
    Replies:
    2
    Views:
    401
    Roedy Green
    Aug 14, 2003
  3. Ralf Bednarz

    Re: Speech recognation with Java

    Ralf Bednarz, Aug 13, 2003, in forum: Java
    Replies:
    0
    Views:
    1,263
    Ralf Bednarz
    Aug 13, 2003
  4. Michael Holtermann

    Re: Speech recognation with Java

    Michael Holtermann, Aug 19, 2003, in forum: Java
    Replies:
    0
    Views:
    376
    Michael Holtermann
    Aug 19, 2003
  5. James Nugent
    Replies:
    0
    Views:
    379
    James Nugent
    Feb 9, 2004
Loading...

Share This Page