Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Voice Recognition Implementation
Forum Updated to NodeBB v4.3 + New Features

Voice Recognition Implementation

Scheduled Pinned Locked Moved Unsolved General and Desktop
87 Posts 5 Posters 58.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Naveen_DN Naveen_D

    @mrjj hi,

    When run this command

    pocketsphinx_continuous
    -hmm /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k
    -dict /usr/share/pocketsphinx/model/lm/en_US/cmu07a.dic
    -lm /usr/share/pocketsphinx/model/lm/en_US/hub4.5000.DMP

    i get this output can u pls tell me wats the prb here...
    INFO: continuous.c(295): Specify '-infile <file.wav>' to recognize from file or '-inmic yes' to recognize from microphone.

    mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #45

    @Naveen_D said in Voice Recognition Implementation:

    INFO: continuous.c(295): Specify '-infile <file.wav>' to recognize from file or '-inmic yes' to recognize from microphone.

    Sadly I dont know pocketsphinx, i just browsed over the docs to help you,

    if I should guess, i think it ask where to get the input from.
    You give it the data files ( dic + friends) and then it says
    give me -INFILE for a file with input or -inmic to use your mic.

    • Also i am not able to understand what they are doing in the hello world example
      Which part? There are pretty good explaining in between the code.
      Not sure we can make it much better unless some user comes by that
      actually use pocketsphinx :)
    1 Reply Last reply
    1
    • Naveen_DN Offline
      Naveen_DN Offline
      Naveen_D
      wrote on last edited by
      #46

      Is there any other open source api which i can use for voice recognition in qt??

      Naveen_D

      mrjjM 1 Reply Last reply
      0
      • Naveen_DN Naveen_D

        Is there any other open source api which i can use for voice recognition in qt??

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by mrjj
        #47

        @Naveen_D
        Hi, you can try the QtSpeech as SGaist mentions.
        It seems it uses pocket also
        http://cmusphinx.sourceforge.net/2015/10/qtspeechrecognition-api-for-qt-using-pocketsphinx/
        "You can find the sources in review in qtspeech project, branch wip/speech-recognition."

        So maybe :)

        Naveen_DN 1 Reply Last reply
        1
        • mrjjM mrjj

          @Naveen_D
          Hi, you can try the QtSpeech as SGaist mentions.
          It seems it uses pocket also
          http://cmusphinx.sourceforge.net/2015/10/qtspeechrecognition-api-for-qt-using-pocketsphinx/
          "You can find the sources in review in qtspeech project, branch wip/speech-recognition."

          So maybe :)

          Naveen_DN Offline
          Naveen_DN Offline
          Naveen_D
          wrote on last edited by
          #48

          @mrjj hi yes i will try with that also thanks
          QtSpeech is it for text to speech or speech to text ?

          Naveen_D

          mrjjM 1 Reply Last reply
          0
          • Naveen_DN Naveen_D

            @mrjj hi yes i will try with that also thanks
            QtSpeech is it for text to speech or speech to text ?

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #49

            @Naveen_D
            HI
            As the Champ says:

            "Hi, Just in case, there's a speech recognition branch in the QtSpeech "

            Naveen_DN 1 Reply Last reply
            1
            • mrjjM mrjj

              @Naveen_D
              HI
              As the Champ says:

              "Hi, Just in case, there's a speech recognition branch in the QtSpeech "

              Naveen_DN Offline
              Naveen_DN Offline
              Naveen_D
              wrote on last edited by
              #50

              @mrjj okay i will try it thanks

              Naveen_D

              mrjjM 1 Reply Last reply
              0
              • Naveen_DN Naveen_D

                @mrjj okay i will try it thanks

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #51

                @Naveen_D
                Good luck :)

                Naveen_DN 1 Reply Last reply
                1
                • mrjjM mrjj

                  @Naveen_D
                  Good luck :)

                  Naveen_DN Offline
                  Naveen_DN Offline
                  Naveen_D
                  wrote on last edited by
                  #52

                  @mrjj Hi i am trying voice recognition with julius, I have installed julius on my ubuntu system and configured it, i have created one my.jconfg file from the sample.jconfg file which i got after installing julius. but when i run that, I get the following output

                  ubuntu@ub:~/Documents/julius-4.2.2/test$ padsp julius -C my.jconf
                  STAT: include config: my.jconf

                  <<< please speak >>>^C

                  I am not sure is it running or not, How to confirm that it is running or not ?

                  Naveen_D

                  jsulmJ mrjjM 2 Replies Last reply
                  0
                  • Naveen_DN Naveen_D

                    @mrjj Hi i am trying voice recognition with julius, I have installed julius on my ubuntu system and configured it, i have created one my.jconfg file from the sample.jconfg file which i got after installing julius. but when i run that, I get the following output

                    ubuntu@ub:~/Documents/julius-4.2.2/test$ padsp julius -C my.jconf
                    STAT: include config: my.jconf

                    <<< please speak >>>^C

                    I am not sure is it running or not, How to confirm that it is running or not ?

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #53

                    @Naveen_D To me it looks like it is running and asking you to say something :-)
                    If you have a microphone connected you should try to say something - this is a speech recognition system at the end :-)

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    1
                    • Naveen_DN Naveen_D

                      @mrjj Hi i am trying voice recognition with julius, I have installed julius on my ubuntu system and configured it, i have created one my.jconfg file from the sample.jconfg file which i got after installing julius. but when i run that, I get the following output

                      ubuntu@ub:~/Documents/julius-4.2.2/test$ padsp julius -C my.jconf
                      STAT: include config: my.jconf

                      <<< please speak >>>^C

                      I am not sure is it running or not, How to confirm that it is running or not ?

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #54

                      Hi
                      As @jsulm says , it does seem to be running :)
                      You might need -iput mic unless its default
                      padsp julius -iput mic -C julian.conf.

                      1 Reply Last reply
                      0
                      • Naveen_DN Offline
                        Naveen_DN Offline
                        Naveen_D
                        wrote on last edited by
                        #55

                        Thanks...it works fine for that example

                        Naveen_D

                        mrjjM 1 Reply Last reply
                        0
                        • Naveen_DN Naveen_D

                          Thanks...it works fine for that example

                          mrjjM Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on last edited by
                          #56

                          @Naveen_D
                          \o/
                          Finally !

                          Naveen_DN 1 Reply Last reply
                          0
                          • mrjjM mrjj

                            @Naveen_D
                            \o/
                            Finally !

                            Naveen_DN Offline
                            Naveen_DN Offline
                            Naveen_D
                            wrote on last edited by Naveen_D
                            #57

                            @mrjj But one problem is there...when i change the .grammar and .voca files for different commands it gives error i followed the steps given in this link http://www.voxforge.org/home/dev/acousticmodels/linux/create/htkjulius/tutorial/data-prep/step-1 to generate .grammar and .voca files and generate their respective .dict and .dfa files but when i run it gives, error in loading model...it only worked for the test example which was provided in that link.... :-(

                            When i run the command after changing that files this is the output...

                            ubuntu@ub:~/Documents/julius-4.2.2/SampleTest$ padsp julius -C my.jconfSTAT: include config: my.jconf
                            ERROR: Error in loading model
                            ubuntu@ub:~/Documents/julius-4.2.2/SampleTest$ ^C

                            Naveen_D

                            1 Reply Last reply
                            0
                            • Naveen_DN Offline
                              Naveen_DN Offline
                              Naveen_D
                              wrote on last edited by
                              #58

                              Sorry i got the test example from the following link...
                              http://kamilskowron.pl/en/linux/julius-step-by-step-step-2-basic-configuration/

                              Naveen_D

                              mrjjM 1 Reply Last reply
                              0
                              • Naveen_DN Naveen_D

                                Sorry i got the test example from the following link...
                                http://kamilskowron.pl/en/linux/julius-step-by-step-step-2-basic-configuration/

                                mrjjM Offline
                                mrjjM Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on last edited by mrjj
                                #59

                                @Naveen_D

                                Hi So it will generate the .dict etc for the sample , but if you try with your own files it wont?
                                Did you try his next sample with the media player as reference ?

                                Naveen_DN 2 Replies Last reply
                                0
                                • mrjjM mrjj

                                  @Naveen_D

                                  Hi So it will generate the .dict etc for the sample , but if you try with your own files it wont?
                                  Did you try his next sample with the media player as reference ?

                                  Naveen_DN Offline
                                  Naveen_DN Offline
                                  Naveen_D
                                  wrote on last edited by
                                  #60

                                  @mrjj No i have not tried that...To know the process how to generate my own grammar i thought i will change the .grammar and .voca file for small commands (my own commands) and generate the .dict and .dfa files for that and try but was not successful...

                                  I will try his next sample for media player.

                                  Naveen_D

                                  1 Reply Last reply
                                  1
                                  • mrjjM mrjj

                                    @Naveen_D

                                    Hi So it will generate the .dict etc for the sample , but if you try with your own files it wont?
                                    Did you try his next sample with the media player as reference ?

                                    Naveen_DN Offline
                                    Naveen_DN Offline
                                    Naveen_D
                                    wrote on last edited by
                                    #61

                                    @mrjj I am getting output for his next sample(Rhythm Box).

                                    Naveen_D

                                    mrjjM 1 Reply Last reply
                                    1
                                    • Naveen_DN Naveen_D

                                      @mrjj I am getting output for his next sample(Rhythm Box).

                                      mrjjM Offline
                                      mrjjM Offline
                                      mrjj
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #62

                                      @Naveen_D
                                      Super. so it can work :)

                                      Naveen_DN 1 Reply Last reply
                                      1
                                      • mrjjM mrjj

                                        @Naveen_D
                                        Super. so it can work :)

                                        Naveen_DN Offline
                                        Naveen_DN Offline
                                        Naveen_D
                                        wrote on last edited by
                                        #63

                                        @mrjj ya for those samples it is working fine...but when i generate my own .grammar and .voca file with same procedure i am not getting output it is showing me errors..i am following the steps as it is...but no output. i am not getting what is going wrong..:-(

                                        Naveen_D

                                        mrjjM 1 Reply Last reply
                                        0
                                        • Naveen_DN Naveen_D

                                          @mrjj ya for those samples it is working fine...but when i generate my own .grammar and .voca file with same procedure i am not getting output it is showing me errors..i am following the steps as it is...but no output. i am not getting what is going wrong..:-(

                                          mrjjM Offline
                                          mrjjM Offline
                                          mrjj
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #64

                                          @Naveen_D
                                          Well dont the errors give any hints of what it dont like?

                                          Naveen_DN 1 Reply Last reply
                                          1

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved