freetts Audio Format不支持的问题

xstom19 2008-03-14 01:20:14
我在运行freetts的HelloWorld的DEMO的时候报异常,应该是格式不支持。源代码就是freetts自带的helloworld,不知道怎么解决.以下是控制台输出:
All general Mode JSAPI Synthesizers and Voices:
FreeTTS en_US general synthesizer (mode=general, locale=en_US):
kevin
kevin16

Using voice: kevin16
Exception in thread "Thread-1" java.lang.IllegalArgumentException: No line matching interface SourceDataLine supporting format PCM_SIGNED 16000.0 Hz, 16 bit, mono, 2 bytes/frame, big-endian is supported.
at javax.sound.sampled.AudioSystem.getLine(AudioSystem.java:459)
at com.sun.speech.freetts.audio.JavaStreamingAudioPlayer.openLine(JavaStreamingAudioPlayer.java:193)
at com.sun.speech.freetts.audio.JavaStreamingAudioPlayer.begin(JavaStreamingAudioPlayer.java:409)
at com.sun.speech.freetts.relp.LPCResult.playWaveSamples(LPCResult.java:507)
at com.sun.speech.freetts.relp.LPCResult.playWave(LPCResult.java:403)
at com.sun.speech.freetts.relp.AudioOutput.processUtterance(AudioOutput.java:56)
at com.sun.speech.freetts.Voice.runProcessor(Voice.java:557)
at com.sun.speech.freetts.Voice.outputUtterance(Voice.java:513)
at com.sun.speech.freetts.Voice.access$100(Voice.java:80)
at com.sun.speech.freetts.Voice$1.run(Voice.java:475)
...全文
465 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
莫情莫钱 2008-04-26
  • 打赏
  • 举报
回复
没有代码,就看错误,不知道怎么找
haoxiongok 2008-04-25
  • 打赏
  • 举报
回复
帮楼主顶一下
kokobox 2008-04-16
  • 打赏
  • 举报
回复
black8angel 2008-03-24
  • 打赏
  • 举报
回复
sf

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧