Pregunta

I'm using Sphinx4 version 4-1.0beta6 over my mac osx 10.9.1 through the terminal. I'm still new in this SR application. I've already run HelloWrold example and added some new words to the gram file and it worked. Now, I'd like to use rules or something that helps in order to accept more sentences spoken by the user. My questions are:

  • How Can I make my HelloWorld do that? Should I use rules? and if so, is there any examples?
  • If I used rules, How can I print the spoken question back to the user?

Thanks in Advance.

¿Fue útil?

Solución

How Can I make my HelloWorld do that? Should I use rules? and if so, is there any examples?

It depends on the task but generally you want to extend the grammar with more rules. You can find more information in CMUSphinx tutorial at http://cmusphinx.sourceforge.net

If I used rules, How can I print the spoken question back to the user?

You get the recognition result as string. You can print it with System.out.println or display in your UI or do whatever you want.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top