我正在尝试设置Cairo-0.3项目并且我的rserver.sh,receiver.sh和transmitter.sh成功运行但是当我尝试运行时执行demo-recog.sh(cairo中的一个演示程序)我明白了:
Received an unhandled SIP response status code (ignoring it): 183 : Session progress
2012-07-16 18:01:31,931 INFO {main} org.speechforge.cairo.demo.recog.RecognitionClient
Received the SIP Response.
2012-07-16 18:01:31,931 INFO {main} org.speechforge.cairo.demo.recog.RecognitionClient
invite : org.speechforge.cairo.sip.SdpMessage@1e61363
java.lang.NullPointerException
2012-07-16 18:01:32,067 WARN {Thread-7} org.speechforge.cairo.rtp.RTPPlayer
playSource(): encountered unexpected exception:
javax.media.NoDataSourceException: Error instantiating class: com.sun.media.protocol.dsound.DataSource : java.lang.NullPointerException
at javax.media.Manager.createDataSource(Manager.java:1012)
at org.speechforge.cairo.rtp.RTPPlayer.playSource(RTPPlayer.java:110)
at org.speechforge.cairo.rtp.NativeMediaClient$TransmitThread.run(NativeMediaClient.java:105)
Exception in thread "Thread-7" java.lang.RuntimeException: playSource() encountered unexpected exception
at org.speechforge.cairo.rtp.RTPPlayer.playSource(RTPPlayer.java:153)
at org.speechforge.cairo.rtp.NativeMediaClient$TransmitThread.run(NativeMediaClient.java:105)
Caused by: javax.media.NoDataSourceException: Error instantiating class: com.sun.media.protocol.dsound.DataSource : java.lang.NullPointerException
at javax.media.Manager.createDataSource(Manager.java:1012)
at org.speechforge.cairo.rtp.RTPPlayer.playSource(RTPPlayer.java:110)
... 1 more
2012-07-16 18:01:42,085 WARN {main} org.speechforge.cairo.demo.recog.RecognitionClient
org.mrcp4j.client.MrcpInvocationException: MRCP response contains an error code, the request invocation did not complete successfully.
org.mrcp4j.client.MrcpInvocationException: MRCP response contains an error code, the request invocation did not complete successfully.
at org.mrcp4j.client.MrcpChannel.sendRequest(MrcpChannel.java:143)
at org.speechforge.cairo.demo.recog.RecognitionClient.doRecognize(RecognitionClient.java:163)
at org.speechforge.cairo.demo.recog.RecognitionClient.main(RecognitionClient.java:346)
2012-07-16 18:01:42,091 INFO {main} org.speechforge.cairo.sip.SimpleSipAgent
Sent a SIP BYE.
我无法理解我在这里做错了什么。
答案 0 :(得分:0)
您需要安装和配置Java Media Framework才能运行此软件。请参阅自述文件中的安装说明:
安装
- 提取开罗 要安装Cairo,请将二进制分发存档中的所有文件解压缩到ch
的目录中- 下载并安装JMF 2.1.1 Cairo需要Java Media Framework(JMF)版本2.1.1。可以在这里下载:
醇>
http://java.sun.com/products/java-media/jmf/2.1.1/download.html
下载并运行与您的特定对应的JMF安装程序 操作系统。这将