Skip to content

Keyword followed by dynamic word Search #42

@annadatha

Description

@annadatha

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions