0

Error in java text to speech help resolve below exception

I used program to get a string and speak what is written Exception in thread "Thread-0" 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 java.desktop/javax.sound.sampled.AudioSystem.getLine(AudioSystem.java:425) at com.sun.speech.freetts.audio.JavaStreamingAudioPlayer.openLine(JavaStreamingAudioPlayer.java:194) at com.sun.speech.freetts.audio.JavaStreamingAudioPlayer.begin(JavaStreamingAudioPlayer.java:410) at com.sun.speech.freetts.relp.LPCResult.playWaveSamples(LPCResult.java:505) at com.sun.speech.freetts.relp.LPCResult.playWave(LPCResult.java:403) at com.sun.speech.freetts.relp.AudioOutput.processUtterance(AudioOutput.java:65) at com.sun.speech.freetts.Voice.runProcessor(Voice.java:595) at com.sun.speech.freetts.Voice.outputUtterance(Voice.java:536) at com.sun.speech.freetts.Voice.access$200(Voice.java:81) at com.sun.speech.freetts.Voice$1.run(Voice.java:496)

25th Jul 2020, 1:57 AM
MST
1 Odpowiedź
+ 2
Hello MST The link is not working. Do you have a code? The method which you are trying to use should be enough. There is something wrong with the arguements. About IllegalArgumentException: https://www.tutorialspoint.com/how-to-solve-an-illegalargumentexception-in-java
2nd Aug 2020, 1:55 PM
Denise Roßberg
Denise Roßberg - avatar