Closed swapsdphoenix closed 9 years ago
Do you have the required FlacEncoder dependency in your build path? If not this error will be generated.
Thanks that helped!!! Program is working correctly...however i have one doubt in synthesizer part...how do I change voice of mp3 output from female to male voice???? any help will be appreciated Thanking in advance :)
Unfortunately, Google updated their English-GB voice to a female model so there is no longer an English male, supported voice. You could try messing around with parameters to change the voice. Alternatively, SynthesizerV2 is experimental but does have a pitch parameter to make the voice deeper or higher pitched.
Thanks a lot !!! Really appreciate your help :)
I keep getting following error message with helloworld example
Recording... java.lang.IllegalArgumentException: could not write audio file: file type not supported: FLAC at javax.sound.sampled.AudioSystem.write(AudioSystem.java:1363) at com.darkprograms.speech.microphone.Microphone$CaptureThread.run(Microphone.java:216) at java.lang.Thread.run(Thread.java:744) Recording stopped. ERROR: Google cannot be contacted java.io.FileNotFoundException: testfile2.flac (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:146)
at com.darkprograms.speech.recognizer.Recognizer.rawRequest(Recognizer.java:444)
at com.darkprograms.speech.recognizer.Recognizer.getRecognizedDataForFlac(Recognizer.java:271)
at helloWorld.main(helloWorld.java:43)