Menu

continuous.c

Help
2014-05-25
2018-07-08
  • hydrazkiller

    hydrazkiller - 2014-05-25

    Hello everyone,
    First of all, posted on the wrong forum. My bad i am sorry :( I am using the beaglebone black and i am editing the file continous.c. However, none of the edits i make appear once i execute pocketsphinx_continuous. I did do the make command prior to running pocketsphinx_continuous, and i did all with sudo. Can anyone help me? Please :(

    printf("TESTING...\n");
    fflush(stdout);
    /* Finish decoding, obtain and print result */
    ps_end_utt(ps);
    hyp = ps_get_hyp(ps, NULL, &uttid);
    printf("%s: %s\n", uttid, hyp);
    printf("TESTING TESTING");
    fflush(stdout);
    
    /* Exit if the first word spoken was GOODBYE */
    if (hyp) {
        sscanf(hyp, "%s", word);
        if (strcmp(hyp, "goodbye") == 0)
            {
            system("espeak \"good bye\"");
            break;
            }
        else if(strcmp(hyp, "hello") == 0)
            {
                system("espeak \"hello\"");
            }
        else if(strcmp(word, "forward") == 0)
            {
                printf("TESTING TESTING");
                system("espeak \"moving robot\"");
            }
    
    }
    

    i was trying to see if it would print any testings anywhere, but it didn't do it.... :/. Also, it gives me an error for espeak, it says system is not recognized

     
  • Nickolay V. Shmyrev

    Also, it gives me an error for espeak, it says system is not recognized

    Provide full build and install logs.

     
    • hydrazkiller

      hydrazkiller - 2014-05-26

      I know what i did wrong. Thank you very much for helping anyways. I was compiling a default continuous.c file. I fixed the problem. Thank you very much though nickolay V.

       
  • Hassan SALLOUM

    Hassan SALLOUM - 2018-07-08
     

    Last edit: Hassan SALLOUM 2018-07-08

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.