Tag: jsapi

使用kevin或mbrola时使用Freetts的例外情况

我正在尝试使用freetts运行程序。 我能够编译程序但是我无法使用kevin或mbrola语音我最后得到了以下输出消息 系统属性“mbrola.base”未定义。 不会使用MBROLA的声音。 LINE UNAVAILABLE:格式为pcm_signed 16000.0 Hz 16位1通道大端 import javax.speech.*; import javax.speech.synthesis.*; import java.util.*; class freetts { public static void main(String[] args) { try{ Calendar calendar = new GregorianCalendar(); String sayTime = “It is ” + calendar.get(Calendar.HOUR) + ” ” + calendar.get(Calendar.MINUTE) + ” ” + (calendar.get(Calendar.AM_PM)==0 ? “AM”:”PM”); Synthesizer synth = Central.createSynthesizer(null); synth.allocate(); […]