0
私はスピーチプログラムへのテキストを作成しようとしていますが、私はいつもこれを取得:私はそれを修正することができますどのようにFreeTTSのjava.lang.NullPointerException
import com.sun.speech.freetts.Voice;
import com.sun.speech.freetts.VoiceManager;
public class FreeTTS {
public static void main(String args[]) {
VoiceManager vm = VoiceManager.getInstance();
Voice voice = vm.getVoice("kevin16");
voice.allocate();
voice.speak("Hello World!");
voice.deallocate();
}
}
:
ここException in thread "main" java.lang.NullPointerException
at FreeTTS.main(FreeTTS.java:7)
は私のコードです?
どの行が7行目ですか? – luckydog32