Menu

How to change pocketsphinx_continuous default actions?

Help
rezaee
2016-10-29
2016-11-01
  • rezaee

    rezaee - 2016-10-29

    Hi
    I want to change the reaction of pocketsphinx when recognized or not recognized a word. I mean, when I run pocketsphinx_continuous it lisening to mic and shows anything it recognized in terminal, but I like to change this action and sending a command to speaker, or run another program, or sending something in serial port, etc!

    How can I do this ans where should I find the pocketsphinx_continuous file and change it?

     

    Last edit: rezaee 2016-10-29
  • rezaee

    rezaee - 2016-10-29

    So, should we learn python to do that?

     
  • rezaee

    rezaee - 2016-10-29

    Isn't possible to use something like c/c++ ?

     
    • Nickolay V. Shmyrev

      So, should we learn python to do that?

      You need to learn how to write software.

      Isn't possible to use something like c/c++ ?

      It is possible with C too.

       
      • rezaee

        rezaee - 2016-11-01

        Is there any open-source project to see and learn?
        I know C and C++, but don't know how to matching my program to CMUSphinx?

        For example I've written a program that it can play some sound files. I like when I said "Play sounds", CMUSphinx recognizes my command and run that program that plays the sound files.

        From the tutorial I know how to build a voice recognition system with pocketsphinx, and from my background I know C and writing a program to play a sound, but, how can I match these two program together is my question!

         
        • Nickolay V. Shmyrev

          Is there any open-source project to see and learn?

          https://sourceforge.net/projects/festlang.berlios/files/gnome-voice-control-0.4.tar.gz/download

          From the tutorial I know how to build a voice recognition system with pocketsphinx, and from my background I know C and writing a program to play a sound, but, how can I match these two program together is my question!

          hyp = ps_get_hyp(decoder);
          if (strcmp(hyp, "play sound") == 0) {
                system("aplay asound.wav");
          }
          if (strcmp(hyp, "goodbye") == 0) {
                exit(0);
          }
          
           
  • Jeffrey

    Jeffrey - 2016-10-31

    Hello Nickolay, I've managed to finally build and run pocketsphinx (pocketsphinx_continuous). The problem I'm running into, is how to a add words and improve accuracy?
    Many thanks.

     
    • Nickolay V. Shmyrev

      You can ask your question in a separate thread.

       
  • Jeffrey

    Jeffrey - 2016-11-01

    Ok, I will create soon, a new tread.
    Thank you for the guidelines!

     

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.