Menu

newcomer question about pocketsphinx-android-demo

Help
adi
2017-08-25
2017-08-25
  • adi

    adi - 2017-08-25

    i dont understand this method onEndOfSpeech()
    for example:
    we start at KWS_SEARCH than the user says ho mighy computer and the method is called right?
    so now we are at MENU_SEARCH than the user say digits but now there is a problem
    onEndOfSpeech() is need to be called now so the lines: if(!recognizer.getSearchName().equals(KWS_SEARCH))
    switchSearch(KWS_SEARCH); are called but we are in MENU_SEARCH so switchSearch(KWS_SEARCH);
    happen thats a problem becuase switchSearch calls recognizer.startListening(searchName) with KWS_SEARCH as searchName so by that logic we are supposed to return to the first menu(where we wait for ho mighty computer)
    but instad we continue to DIGITS_SEARCH

     
    • Nickolay V. Shmyrev

      switch to DIGITS_SEARCH happens in onPartialResult long before onEndOfSpeech is invoked.

       
      • adi

        adi - 2017-08-25

        ok thanks i think i understand now

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.