1

大家好 !我正在开发一个类似于 Jarvis 的应用程序,但问题是当我在我的应用程序中粘贴 freetts 代码时,maven 会抛出异常,但是当我按照教程中的讨论进行操作时 [ http://moderntone.blogspot.com/2013/02/freetts- tutorial.html]然后一切都很好

 CMULexicon: Oh no!  Couldn't find lexicon data!
  Error: Can't load voice java.io.IOException: Can't load lexicon
  Exception in thread "main" java.lang.Error: Can't load voice 
  java.io.IOException: Can't load lexicon
  at com.sun.speech.freetts.Voice.error(Voice.java:875)
  at com.sun.speech.freetts.Voice.allocate(Voice.java:326)
  at com.mycompany.mehrunisa.Mehrunisa.speak(Mehrunisa.java:20)
  at com.mycompany.mehrunisa.Mehrunisa.main(Mehrunisa.java:34)
  ------------------------------------------------------------------------
  BUILD FAILURE
  ------------------------------------------------------------------------
  Total time: 1.758s
  Finished at: Tue Apr 24 21:25:16 PKT 2018
  Final Memory: 5M/109M
  ------------------------------------------------------------------------
  Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec 
  (default-cli) on project Mehrunisa: Command execution failed. Process 
  exited with an error: 1 (Exit value: 1) -> [Help 1]
  To see the full stack trace of the errors, re-run Maven with the -e 
  switch.Re-run Maven using the -X switch to enable full debug logging.**
4

0 回答 0