Open livem opened 5 years ago
Last I tried this worked. The source for it is here: https://sourceforge.net/p/halef/halef-mrcp4j/ci/master/tree/
Maybe this is helpful too https://github.com/halef/speech-setup/blob/master/install_cairo.sh
This Cairo project is the only project for MRCPv2 Java implementation. All mrcp4j and Cairo are from www.speechforge.org, but that was ten years ago .........
Cairo - Open source framework for control of speech media resources.
Copyright (C) 2005-2006 SpeechForge - http://www.speechforge.org
This project is basically a copy of the original Cairo with slight modifications for our use case. I will update the README to reflect this. If you are looking for a maintained project and you are comfortable with C I suggest taking a look at https://github.com/unispeech/unimrcp
Thanks
liveM | |
---|---|
邮箱:chengbiao2007@126.com | On 02/27/2019 00:54, Patrick L. Lange wrote:
This project is basically a copy of the original Cairo with slight modifications for our use case. I will update the README to reflect this. If you are looking for a maintained project and you are comfortable with C I suggest taking a look at https://github.com/unispeech/unimrcp
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Does this project can run on Java 8 or higher ?
I know that it works with Java 8. I haven't tried a newer version but think it should also work.
I run the ResourceServerImpl and ReceiverResource on Java 8 , everything is ok. When I test on a call to my ReceiverResource , it can receive a RECOGNIZE request
MRCP/2.0 248 RECOGNIZE 1 Channel-Identifier: 1692dcbd151@speechrecog Content-Type: text/uri-list Cancel-If-Queue: false Recognition-Timeout: 800000 Start-Input-Timers: true No-Input-Timeout: 800000 Content-Length: 21
builtin:grammar/phone
But my ReceiverResource did not response IN-PROGRESS to my mrcp client ......
This is probably because we made some hacky changes in the past to support a remote recognizer instead of sphinx. The code would need to be modified quite a bit to get this back to work like in the default setting.
If you are interested in making any changes you might want to start looking into ReceiverResource.java (lines 106, 107) but we also modified RTPRecogChannel and some other things. I think this project would require some major cleanup before it can be used for anything besides what we are using it for at the moment.
I am afraid that I don't have time to fix the current situation at the moment.
Thanks. I found out your project is for Kaldi client .
2019-02-27 20:02:29.340 [mainhread] - at org.speechforge.cairo.server.resource.ReceiverResource.main - [INFO] binding receiver resource... 2019-02-27 20:02:29.359 [mainhread] - at org.speechforge.cairo.server.resource.ReceiverResource.main - [INFO] Resource bound and waiting... 2019-02-27 20:02:43.295 [RMI TCP Connection(1)-10.0.0.3hread] - at org.speechforge.cairo.server.resource.ResourceImpl.ping - [DEBUG] Resource received ping() request. 2019-02-27 20:02:43.339 [RMI TCP Connection(1)-10.0.0.3hread] - at org.speechforge.cairo.server.resource.ReceiverResource.invite - [DEBUG] Resource received invite() request. 2019-02-27 20:02:43.340 [RMI TCP Connection(1)-10.0.0.3hread] - at org.speechforge.cairo.server.resource.ReceiverResource.invite - [DEBUG] Resource Type: speechrecog 2019-02-27 20:02:43.386 [RMI TCP Connection(1)-10.0.0.3hread] - at org.speechforge.cairo.rtp.RTPConsumer.init - [DEBUG] RTPManager class: com.sun.media.rtp.RTPSessionMgr 2019-02-27 20:02:43.504 [IoThreadPool-1hread] - at org.mrcp4j.server.mina.IoTextLoggingFilter.sessionOpened - [DEBUG] OPENED 2019-02-27 20:02:43.509 [IoThreadPool-3hread] - at org.mrcp4j.server.mina.IoTextLoggingFilter.dataRead - [DEBUG] READ: MRCP/2.0 248 RECOGNIZE 1 Channel-Identifier: 1692ed594fe@speechrecog Content-Type: text/uri-list Cancel-If-Queue: false Recognition-Timeout: 800000 Start-Input-Timers: true No-Input-Timeout: 800000 Content-Length: 21
builtin:grammar/phone 2019-02-27 20:02:43.519 [IoThreadPool-1hread] - at org.mrcp4j.server.mina.IoTextLoggingFilter.sessionClosed - [DEBUG] CLOSED
You can see log sessionOpened , then dataRead , then sessionClosed. What happenened ?
In org.mrcp4j.server.MrcpProtocolHandler#exceptionCaught method ,
@Override public void exceptionCaught(ProtocolSession session, Throwable cause) { // close connection when unexpected exception is caught. session.close(); }
When caught an exception , would run this method , then close session without log exception............ So I can see nothing in the log.
@langep Thank you for your work. I had fix my problem , you can close this issues. ^_^
In the cairo-server/trunk pom.xml
But I found nothing in the mvnrepository.com, and also no files in https://sourceforge.net/projects/halef
Where can I find the code ? Thanks.