CentOS ボックスで mbrola バイナリを使用しようとしています。以下のページにリストされている多くのバイナリを試しましたが、どれも機能していません。 http://www.tcts.fpms.ac.be/synthesis/mbrola/mbrcopybin.html
次のエラーが表示されます -
Processing Utterance: com.sun.speech.freetts.ProcessException: Cannot start mbrola program:
これは、CentOS の互換性のないバイナリである可能性が最も高いと思います。CentOS で利用できるバイナリがあるかどうか教えてください。
コード -
public static void createAudioFile(String text, String fileName) {
AudioPlayer audioPlayer = null;
//System.setProperty("freetts.voices", "com.sun.speech.freetts.en.us.cmu_time_awb.AlanVoiceDirectory");
System.setProperty("mbrola.base", Constants.mbrolaDiskPath);
Voice voice;
VoiceManager vm = VoiceManager.getInstance();
voice = vm.getVoice("mbrola_us1");
voice.allocate();
try{
String directoryPath = audioDir+fileName;
audioPlayer = new SingleFileAudioPlayer(directoryPath,Type.WAVE);
voice.setAudioPlayer(audioPlayer);
voice.speak(text);
voice.deallocate();
audioPlayer.close();
}
catch(Exception e){
e.printStackTrace();
}
}