pocketsphinx-android-demo icon indicating copy to clipboard operation
pocketsphinx-android-demo copied to clipboard

Keyword followed by dynamic word Search

Open annadatha opened this issue 7 years ago • 2 comments

The issue is similar to as mentioned in https://github.com/cmusphinx/pocketsphinx-android-demo/issues/13.

My issue is below:

Command: CALL ABCD I have a command "CALL ABCD", where CALL is a pre-defined Keyword followed by a name of a contact i.e., "ABCD". In the addKeyword Search, I can only give "CALL" and the Hypothesis does not provide results spoken after the keyword "CALL".

I would like to understand in recognizing a two word command where the first word is defined and second word can be any. Currently, One possible solution I am looking at is JSGF file input where CALL followed by listing of as many names as possible. But, I am sure, that is not a right solution.

PS: I have seen the Sphinx4 tutorial and believe the LiveStreaming would be the right one. https://cmusphinx.github.io/wiki/tutorialsphinx4/ . I assume this would be a bigger one for android .

Edit 1: The following verified format of jsgf file is not considered by PocketSphinx. (Ref: https://www.w3.org/TR/jsgf/ ) Any suggestions please?


grammar menu;
import <com.grammar.callwhom.caller>;
import <com.grammar.selectdial.selector>;

public <command> = <item> | <caller> | <selector> ;

<item> = close | stop | reply | play | play music | reject | ignore | answer | end | info | message | open | speed dial one | speed dial two | speed dial to | speed dial three | speed dial four | speed dial five | speed dial six | speed dial seven | speed dial eight | speed dial nine;

annadatha avatar Aug 30 '17 13:08 annadatha

Hi,has this problem been solved? I have same problem.

shenzhiwangfh avatar Nov 02 '18 09:11 shenzhiwangfh

@annadatha

shenzhiwangfh avatar Nov 02 '18 09:11 shenzhiwangfh