Property exception component:'wsjLoader'

前端 未结 1 1471
耶瑟儿~
耶瑟儿~ 2020-12-20 06:03

In recent days I have been reading alot about modifying the HelloWorld demo file & adding new words in it of our own choice. But I am encountering a serious problem whic

相关标签:
1条回答
  • 2020-12-20 06:37

    You made it wrong from the beginning, you should have used updated version sphinx4-5prealpha which is much easier to use. You should not repackage any sphinx4 jars. Here are the steps you need to make to create an application using sphinx4 and recognizing a custom grammar:

    1. Setup a new java application in your IDE

    2. Add sphinx4 dependency with jars or with maven/gradle.

    3. Write grammar as requested and add it into application resources.

    4. Write dictionary as requested and add it to application resources.

    5. Copy SpeechRecognizer code from tutorial and modify path according to the location of the resources you created.

    For more details, see sphinx4 tutorial

    0 讨论(0)
提交回复
热议问题