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 51.3k 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 Offline
    Naveen_DN Offline
    Naveen_D
    wrote on last edited by
    #4

    @QtAndrew ok i will use external library such as pocketsphinx.
    Using this how i can do. Since em new to this em asking...if small example is available that would help me alot.

    Naveen_D

    mrjjM 1 Reply Last reply
    0
    • Naveen_DN Naveen_D

      @QtAndrew ok i will use external library such as pocketsphinx.
      Using this how i can do. Since em new to this em asking...if small example is available that would help me alot.

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

      @Naveen_D said in Voice Recognition Implementation:

      pocketsphinx

      hi
      for any external lib , one should go and look at build info for the platform that is wanted.

      Lets see for windows:

      https://github.com/cmusphinx/pocketsphinx

      Seems to use on windows, you must have V Studio 2010 or newer installed for this lib.
      So for it to work for you , you should have Qt for VS version installed. exact version. (2010,2012,2013,2015)

      Then after you made the LIB to build. That is, it produces .DLL or .LIB files

      Then you will include in your own Qt project
      http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html

      Check all paths in the .pro file. If it gives errors, check forum. plenty of posts about using a lib/dll.

      Now you are ready to try use the functions it gives. :)

      So a key thing to understand is that the external lib and the Qt version your are using - should been made by same compiler.
      So if you are using mingw compiler, using a Visual Studio DLL won't work and reverse.

      Naveen_DN 2 Replies Last reply
      3
      • mrjjM mrjj

        @Naveen_D said in Voice Recognition Implementation:

        pocketsphinx

        hi
        for any external lib , one should go and look at build info for the platform that is wanted.

        Lets see for windows:

        https://github.com/cmusphinx/pocketsphinx

        Seems to use on windows, you must have V Studio 2010 or newer installed for this lib.
        So for it to work for you , you should have Qt for VS version installed. exact version. (2010,2012,2013,2015)

        Then after you made the LIB to build. That is, it produces .DLL or .LIB files

        Then you will include in your own Qt project
        http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html

        Check all paths in the .pro file. If it gives errors, check forum. plenty of posts about using a lib/dll.

        Now you are ready to try use the functions it gives. :)

        So a key thing to understand is that the external lib and the Qt version your are using - should been made by same compiler.
        So if you are using mingw compiler, using a Visual Studio DLL won't work and reverse.

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

        @mrjj Thanks alot.

        Naveen_D

        1 Reply Last reply
        0
        • mrjjM mrjj

          @Naveen_D said in Voice Recognition Implementation:

          pocketsphinx

          hi
          for any external lib , one should go and look at build info for the platform that is wanted.

          Lets see for windows:

          https://github.com/cmusphinx/pocketsphinx

          Seems to use on windows, you must have V Studio 2010 or newer installed for this lib.
          So for it to work for you , you should have Qt for VS version installed. exact version. (2010,2012,2013,2015)

          Then after you made the LIB to build. That is, it produces .DLL or .LIB files

          Then you will include in your own Qt project
          http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html

          Check all paths in the .pro file. If it gives errors, check forum. plenty of posts about using a lib/dll.

          Now you are ready to try use the functions it gives. :)

          So a key thing to understand is that the external lib and the Qt version your are using - should been made by same compiler.
          So if you are using mingw compiler, using a Visual Studio DLL won't work and reverse.

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

          @mrjj https://github.com/cmusphinx/pocketsphinx in this which file or lib i need to download for windows and also for linux ?

          Naveen_D

          mrjjM 1 Reply Last reply
          0
          • Naveen_DN Naveen_D

            @mrjj https://github.com/cmusphinx/pocketsphinx in this which file or lib i need to download for windows and also for linux ?

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

            @Naveen_D
            If you mean the pocketsphinx-master.zip , its the source code.

            On windows, you will use the pocketsphinx.sln to compile.
            Then you get DLLS etc. ( the resulting library)

            There seems to be no precompiled binaries so its up to you to make them.

            Note. you must compile both on windows and linux. You cannot
            use libs from windows in linux and reverse.

            Naveen_DN 2 Replies Last reply
            1
            • mrjjM mrjj

              @Naveen_D
              If you mean the pocketsphinx-master.zip , its the source code.

              On windows, you will use the pocketsphinx.sln to compile.
              Then you get DLLS etc. ( the resulting library)

              There seems to be no precompiled binaries so its up to you to make them.

              Note. you must compile both on windows and linux. You cannot
              use libs from windows in linux and reverse.

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

              @mrjj that means i should run the complete source code in qt creator and build the binary and use the required libraries ???

              Naveen_D

              mrjjM 1 Reply Last reply
              0
              • mrjjM mrjj

                @Naveen_D
                If you mean the pocketsphinx-master.zip , its the source code.

                On windows, you will use the pocketsphinx.sln to compile.
                Then you get DLLS etc. ( the resulting library)

                There seems to be no precompiled binaries so its up to you to make them.

                Note. you must compile both on windows and linux. You cannot
                use libs from windows in linux and reverse.

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

                @mrjj for linux also i need to use pocketsphinx.sln ?

                Naveen_D

                1 Reply Last reply
                0
                • Naveen_DN Naveen_D

                  @mrjj that means i should run the complete source code in qt creator and build the binary and use the required libraries ???

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

                  @Naveen_D
                  Yes, first step is to get it to compile. Either in Creator or in Visual Studio .
                  That will produce DLL/LIB file.

                  Then you will make new project ( your project) and add this DLL/LIB to it.

                  • linux also i need to use pocketsphinx.sln ?
                    No. for linux , there is other build instructions.
                    $ ./autogen.sh
                    $ ./configure
                    $ make clean all
                    $ make check
                    $ sudo make install
                    --
                    SLN files are for visual studio.

                  There is no visual studio on linux.

                  Naveen_DN 1 Reply Last reply
                  2
                  • mrjjM mrjj

                    @Naveen_D
                    Yes, first step is to get it to compile. Either in Creator or in Visual Studio .
                    That will produce DLL/LIB file.

                    Then you will make new project ( your project) and add this DLL/LIB to it.

                    • linux also i need to use pocketsphinx.sln ?
                      No. for linux , there is other build instructions.
                      $ ./autogen.sh
                      $ ./configure
                      $ make clean all
                      $ make check
                      $ sudo make install
                      --
                      SLN files are for visual studio.

                    There is no visual studio on linux.

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

                    @mrjj Okay thanks...i wanted to know is it possible to develop an desktop app using this which accepts voice recognition? or we need a pos device with some microphone?

                    Naveen_D

                    mrjjM 1 Reply Last reply
                    0
                    • Naveen_DN Naveen_D

                      @mrjj Okay thanks...i wanted to know is it possible to develop an desktop app using this which accepts voice recognition? or we need a pos device with some microphone?

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

                      Well the pc or device
                      must have soundcard and a microphone but other than that,
                      there should be nothing stopping you to run as a Desktop app.

                      I used this on pc
                      http://www.nuance.com/for-individuals/by-product/dragon-for-pc/index.htm

                      Its brilliant.

                      Naveen_DN 1 Reply Last reply
                      1
                      • mrjjM mrjj

                        Well the pc or device
                        must have soundcard and a microphone but other than that,
                        there should be nothing stopping you to run as a Desktop app.

                        I used this on pc
                        http://www.nuance.com/for-individuals/by-product/dragon-for-pc/index.htm

                        Its brilliant.

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

                        @mrjj ya but nuance is not open source rite so em trying with pocketsphinx

                        Naveen_D

                        mrjjM 1 Reply Last reply
                        0
                        • Naveen_DN Naveen_D

                          @mrjj ya but nuance is not open source rite so em trying with pocketsphinx

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

                          @Naveen_D
                          Oh, no. its as commercial as it gets.

                          it was as example of voice Recognition on the desktop :)

                          The best i ever tried. It worked flawless even when multiple people speaking!

                          They even do allow others to use
                          http://www.nuance.com/for-developers/dragon/index.htm
                          but its not open source or gratis.

                          So i just mentioned it for a sample of VR that truly works :)

                          Naveen_DN 1 Reply Last reply
                          2
                          • mrjjM mrjj

                            @Naveen_D
                            Oh, no. its as commercial as it gets.

                            it was as example of voice Recognition on the desktop :)

                            The best i ever tried. It worked flawless even when multiple people speaking!

                            They even do allow others to use
                            http://www.nuance.com/for-developers/dragon/index.htm
                            but its not open source or gratis.

                            So i just mentioned it for a sample of VR that truly works :)

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

                            @mrjj Is there any algorithm for voice recognition that i can use ?

                            Naveen_D

                            jsulmJ 1 Reply Last reply
                            0
                            • Naveen_DN Naveen_D

                              @mrjj Is there any algorithm for voice recognition that i can use ?

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

                              @Naveen_D Yes, pocketsphinx for example which @mrjj already suggested. Or do you want to implement it by yourself?

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

                              Naveen_DN 1 Reply Last reply
                              1
                              • jsulmJ jsulm

                                @Naveen_D Yes, pocketsphinx for example which @mrjj already suggested. Or do you want to implement it by yourself?

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

                                @jsulm no i will use pocketsphinx only

                                Naveen_D

                                1 Reply Last reply
                                0
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #19

                                  Hi,

                                  Just in case, there's a speech recognition branch in the QtSpeech module that's current work in progress but might be interesting for you.

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  1 Reply Last reply
                                  2
                                  • Naveen_DN Offline
                                    Naveen_DN Offline
                                    Naveen_D
                                    wrote on last edited by
                                    #20

                                    Hello everyone

                                    my question is do I need to install CMU-SPHINX first and then pocketsphinx ? or there is any other way for installing pocketsphinx in ubuntu?

                                    Naveen_D

                                    mrjjM 1 Reply Last reply
                                    0
                                    • Naveen_DN Naveen_D

                                      Hello everyone

                                      my question is do I need to install CMU-SPHINX first and then pocketsphinx ? or there is any other way for installing pocketsphinx in ubuntu?

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

                                      Hi
                                      You can try this
                                      Running pocketsphinx Speech Recognition on Ubuntu
                                      https://www.unicom.com/blog/entry/686

                                      Naveen_DN 1 Reply Last reply
                                      0
                                      • mrjjM mrjj

                                        Hi
                                        You can try this
                                        Running pocketsphinx Speech Recognition on Ubuntu
                                        https://www.unicom.com/blog/entry/686

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

                                        @mrjj i have installed cmu-sphinx and pocketsphinx using the instructions given in this link http://jrmeyer.github.io/installation/2016/01/09/Installing-CMU-Sphinx-on-Ubuntu.html is it correct ?

                                        If yes, where i will get the lib of this and how to use this lib to make use of voice recognition ?

                                        Naveen_D

                                        mrjjM 1 Reply Last reply
                                        0
                                        • Naveen_DN Naveen_D

                                          @mrjj i have installed cmu-sphinx and pocketsphinx using the instructions given in this link http://jrmeyer.github.io/installation/2016/01/09/Installing-CMU-Sphinx-on-Ubuntu.html is it correct ?

                                          If yes, where i will get the lib of this and how to use this lib to make use of voice recognition ?

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

                                          @Naveen_D
                                          It seems like a good tut.

                                          When you compile you will get the lib
                                          and this lib you will use in the real project.

                                          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