freetts Audio Format不支持的问题
我在运行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)