Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyword followed by dynamic word Search #42

Open
annadatha opened this issue Aug 30, 2017 · 2 comments
Open

Keyword followed by dynamic word Search #42

annadatha opened this issue Aug 30, 2017 · 2 comments

Comments

@annadatha
Copy link

annadatha commented Aug 30, 2017

The issue is similar to as mentioned in #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;
@shenzhiwangfh
Copy link

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

@shenzhiwangfh
Copy link

@annadatha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants