java - Text to Speech Converter not working -


i trying text speech converter using java code.and using freetts.jar this.i need use in web application.

import com.sun.speech.freetts.*; public class convert {     private static final string voicename="kevin";      public static void call(){     voice voice;      voicemanager vm=voicemanager.getinstance();     system.out.println("come");     voice=vm.getvoice(voicename);      voice.allocate();      try{          voice.speak("wellcome world");         system.out.println("coming here good");      }     catch(exception e){         system.out.println(e);     }     }     public static void main(string agrs[]){          call();       }  } 

in above code not working voice.speak() method not working .i don't know why.can 1 me fix this?

and need know how make text voice conversion own voice . thank you

there no problem code. must have added freetts.jar buildpath. give nullpointer exception.

add jars lib folder of freetts-1.2.2-bin buildpath.

the same code worked me.

try , tell me.

and implementing own voice: check out these articles

http://www.codeproject.com/articles/182881/text-to-speech?msg=5074134#xx5074134xx

http://www.acapela-group.com/voices/voice-replacement/faq-my-own-voice/


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -