java speech implementation

F

focode

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>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top