Define a new keyword in pocket sphinx

前端 未结 1 1942
孤城傲影
孤城傲影 2021-01-28 23:04

I am very new to this.
What I want to do is:

  • Get a user defined KEYWORD from the Speech To Text engine
  • as it recognized, my app does something
相关标签:
1条回答
  • 2021-01-28 23:34

    Use

    recognizer.addGrammarSearch(DIGITS_SEARCH, digitsGrammar);
    

    Instead of

    recognizer.addKeywordSearch(DIGITS_SEARCH, digitsGrammar);
    

    Also modify the assests.lst according to the file name.

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