问题
I have an existing IVR voice application which uses SRGS .grxml grammar files. In the IVR our speech recognizer (Nuance) uses these grammars to take spoken input and return some values based on the particular grammar specified.
I'm trying to find a java based tool which would use these same grammar files but allow me to send plain text in to be parsed according to the rules of the grammar.
I've seen sphinx4 and they have a recognizer but it only uses microphone input from what I can tell. I'm really looking for something like nuance's "parseTool" which given the grammar and a sample text will output the results of the grammar, but I need it within a Java class.
Does anyone know of any tools like this?
来源:https://stackoverflow.com/questions/31398681/srgs-grxml-parsing-via-text-input-in-java