Menu

PocketSphinx on Symbian problem

Help
2011-09-08
2012-09-22
  • vineet jain

    vineet jain - 2011-09-08

    HI, i have successfully compiled both PocketSphinx & SphinxBase in symbian .
    Now i have a sample project in which i am trying to run the sample code which
    records the voice & converts it into words.

    For that i have to firstly initialize the decoder , which if i do the
    application panics with a code which symbolizes that something is missing
    (system error -1) .Following is the code i am using:

    For config:

    config = cmd_ln_init(NULL, cont_args_def, TRUE, "-hmm", "c://data//hmm//",
    "-lm", "c://data//turtle.DMP",
    "-dict", "c://data//turtle.dic",
    NULL);

    then:
    ps = ps_init(config);

    Now when this ps_init() line is executed the code crashes with -1 error.

    I suspected the error to be in the path which i have mentioned in the config
    creation. I tried modifying the path as:

    c://data//hmm or c://data//hmm//" but none helps. I have already created this
    folder in my device & it also contains model files like feat.params, mdef,
    means etc.

    Also i do have the remaining .dic & .lm files in correct path.

    So please advise me if any changes needs to done regarding this issue or what
    is causing this issue.

     
  • vineet jain

    vineet jain - 2011-09-08

    Also if i remove the "-hmm", "c://data//hmm//" , then the error disappears but
    the ps object remains NULL after the call to :

    ps = ps_init(config); , due to which the recording does not gets started.

     
  • Nickolay V. Shmyrev

    Please provide full log

     

Log in to post a comment.