Hello,i am working on a voice recognition application using CMUsphinx API , i can set search modes (kws and fsg) without errors but i have 2 probs:
1- i cant set the search to be fsg after using kws search mode
2-i cant test whether keyword is detected ( how to know whether keyword is detected?
ps_set_kws then ps_set_search and ...?
i need my application to "wake up" after detecting a keyword from keyfile and then use JSGF mode to detect commands
Thank you for your help and i apologize if i didnt stick to the format. First time poster.
Last edit: farouk 2019-03-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When you write "i can't" what do you mean exactly? What are you doing, what do expect to see, what do you actually see. The more details you provide the faster you get a solution.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i apreciate your swift reply. Here are more details:
i want to build a c/c++ aplication by modifying continuous.c, and implement keyword spotting out of file (i managed to do this) then start a JSGF search to detect commands. i cant find a flag or fuction to test keyword spotting. i can only use strstr(hyp,"text") to test. but when i run my application using these paramaters: (-inmic yes -hmm /usr/local/share/pocketsphinx/model/en-us/en-us -adcdev ac108 -lm /home/pi/lm_new/2316.lm -dict /home/pi/lm_new/2316.dic -vad_threshold 2.9) please check the attached screen shot. 2316.dic us a custom language model i made using [LOGIOS Lexicon Tool] . Any help would be appreciated.
Last edit: farouk 2019-03-07
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
but when i run my application using these paramaters: (-inmic yes -hmm /usr/local/share/pocketsphinx/model/en-us/en-us -adcdev ac108 -lm /home/pi/lm_new/2316.lm -dict /home/pi/lm_new/2316.dic -vad_threshold 2.9) please check the attached screen shot. 2316.dic us a custom language model i made using [LOGIOS Lexicon Tool]
Ok, you run the code and what? I do not see any problem on your screenshot. What is the problem you see?
There is no need to hurry with your answers. Every such unfinished answers reduce your chance to get help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i am not trying to rush answer,just providing necessary details. My prob is in keyword detection search mode "PS_SEARCH_TYPE_KWS" the decoder detects words in the keyfile and other words in the dictionarry, the documentation states that it only detects keywords/keyphrases. Thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just wanted to understand why in kws search mode it detects other words like "enable", here is another screenshot. it detects words other than the ones in the keyfile. Thank you
Last edit: farouk 2019-03-07
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Again, you didn't even provide the source code for 3.c file. How could you expect the answer?
Also, when you provide text messages, you can simply paste them into the message with formatting. If you share large files you attach them. Screenshots of the text is pretty bad practice.
Hello,i am working on a voice recognition application using CMUsphinx API , i can set search modes (kws and fsg) without errors but i have 2 probs:
1- i cant set the search to be fsg after using kws search mode
2-i cant test whether keyword is detected ( how to know whether keyword is detected?
ps_set_kws then ps_set_search and ...?
i need my application to "wake up" after detecting a keyword from keyfile and then use JSGF mode to detect commands
Thank you for your help and i apologize if i didnt stick to the format. First time poster.
Last edit: farouk 2019-03-06
When you write "i can't" what do you mean exactly? What are you doing, what do expect to see, what do you actually see. The more details you provide the faster you get a solution.
i apreciate your swift reply. Here are more details:
i want to build a c/c++ aplication by modifying continuous.c, and implement keyword spotting out of file (i managed to do this) then start a JSGF search to detect commands. i cant find a flag or fuction to test keyword spotting. i can only use strstr(hyp,"text") to test. but when i run my application using these paramaters: (-inmic yes -hmm /usr/local/share/pocketsphinx/model/en-us/en-us -adcdev ac108 -lm /home/pi/lm_new/2316.lm -dict /home/pi/lm_new/2316.dic -vad_threshold 2.9) please check the attached screen shot. 2316.dic us a custom language model i made using [LOGIOS Lexicon Tool] . Any help would be appreciated.
Last edit: farouk 2019-03-07
Yes, this is the right function for the test.
Ok, you run the code and what? I do not see any problem on your screenshot. What is the problem you see?
There is no need to hurry with your answers. Every such unfinished answers reduce your chance to get help.
i am not trying to rush answer,just providing necessary details. My prob is in keyword detection search mode "PS_SEARCH_TYPE_KWS" the decoder detects words in the keyfile and other words in the dictionarry, the documentation states that it only detects keywords/keyphrases. Thank you
Let me ask again: "What is wrong with the screenshot".
I just wanted to understand why in kws search mode it detects other words like "enable", here is another screenshot. it detects words other than the ones in the keyfile. Thank you
Last edit: farouk 2019-03-07
Again, you didn't even provide the source code for 3.c file. How could you expect the answer?
Also, when you provide text messages, you can simply paste them into the message with formatting. If you share large files you attach them. Screenshots of the text is pretty bad practice.
http://idownvotedbecau.se/imageofcode
http://idownvotedbecau.se/imageofanexception/