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
QtWS25 Last Chance

Voice Recognition Implementation

Scheduled Pinned Locked Moved Unsolved General and Desktop
87 Posts 5 Posters 50.4k Views
  • 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.
  • N Offline
    N Offline
    Naveen_D
    wrote on 12 Oct 2016, 12:17 last edited by
    #1

    Hi All,

    I wanted to know is it possible to implement voice recognition using qt and what is the procedure for the same.

    thanks in advance

    Naveen_D

    Q 1 Reply Last reply 12 Oct 2016, 12:28
    0
    • N Naveen_D
      12 Oct 2016, 12:17

      Hi All,

      I wanted to know is it possible to implement voice recognition using qt and what is the procedure for the same.

      thanks in advance

      Q Offline
      Q Offline
      QtAndrew
      wrote on 12 Oct 2016, 12:28 last edited by
      #2

      @Naveen_D you must use an external voice recognizer, or write it by your own (i think thats not possible...)

      1 Reply Last reply
      2
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 12 Oct 2016, 12:40 last edited by mrjj 10 Dec 2016, 12:41
        #3

        Hi
        as @Naveen_D says you will need an external lib and which one also depends on what platforms you want to support?
        https://en.wikipedia.org/wiki/List_of_speech_recognition_software

        For Text to voice, Qt has
        https://doc-snapshots.qt.io/qt5-5.8/qtspeech-index.html

        1 Reply Last reply
        2
        • N Offline
          N Offline
          Naveen_D
          wrote on 12 Oct 2016, 13:05 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

          M 1 Reply Last reply 12 Oct 2016, 13:18
          0
          • N Naveen_D
            12 Oct 2016, 13:05

            @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.

            M Offline
            M Offline
            mrjj
            Lifetime Qt Champion
            wrote on 12 Oct 2016, 13:18 last edited by mrjj 10 Dec 2016, 13:20
            #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.

            N 2 Replies Last reply 13 Oct 2016, 03:56
            3
            • M mrjj
              12 Oct 2016, 13:18

              @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.

              N Offline
              N Offline
              Naveen_D
              wrote on 13 Oct 2016, 03:56 last edited by
              #6

              @mrjj Thanks alot.

              Naveen_D

              1 Reply Last reply
              0
              • M mrjj
                12 Oct 2016, 13:18

                @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.

                N Offline
                N Offline
                Naveen_D
                wrote on 13 Oct 2016, 07:15 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

                M 1 Reply Last reply 13 Oct 2016, 08:40
                0
                • N Naveen_D
                  13 Oct 2016, 07:15

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

                  M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 13 Oct 2016, 08:40 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.

                  N 2 Replies Last reply 13 Oct 2016, 09:30
                  1
                  • M mrjj
                    13 Oct 2016, 08:40

                    @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.

                    N Offline
                    N Offline
                    Naveen_D
                    wrote on 13 Oct 2016, 09:30 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

                    M 1 Reply Last reply 13 Oct 2016, 09:39
                    0
                    • M mrjj
                      13 Oct 2016, 08:40

                      @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.

                      N Offline
                      N Offline
                      Naveen_D
                      wrote on 13 Oct 2016, 09:37 last edited by
                      #10

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

                      Naveen_D

                      1 Reply Last reply
                      0
                      • N Naveen_D
                        13 Oct 2016, 09:30

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

                        M Offline
                        M Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on 13 Oct 2016, 09:39 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.

                        N 1 Reply Last reply 13 Oct 2016, 09:46
                        2
                        • M mrjj
                          13 Oct 2016, 09:39

                          @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.

                          N Offline
                          N Offline
                          Naveen_D
                          wrote on 13 Oct 2016, 09:46 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

                          M 1 Reply Last reply 13 Oct 2016, 09:51
                          0
                          • N Naveen_D
                            13 Oct 2016, 09:46

                            @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?

                            M Offline
                            M Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on 13 Oct 2016, 09:51 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.

                            N 1 Reply Last reply 13 Oct 2016, 09:57
                            1
                            • M mrjj
                              13 Oct 2016, 09:51

                              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.

                              N Offline
                              N Offline
                              Naveen_D
                              wrote on 13 Oct 2016, 09:57 last edited by
                              #14

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

                              Naveen_D

                              M 1 Reply Last reply 13 Oct 2016, 10:23
                              0
                              • N Naveen_D
                                13 Oct 2016, 09:57

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

                                M Offline
                                M Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on 13 Oct 2016, 10:23 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 :)

                                N 1 Reply Last reply 13 Oct 2016, 12:46
                                2
                                • M mrjj
                                  13 Oct 2016, 10:23

                                  @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 :)

                                  N Offline
                                  N Offline
                                  Naveen_D
                                  wrote on 13 Oct 2016, 12:46 last edited by
                                  #16

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

                                  Naveen_D

                                  jsulmJ 1 Reply Last reply 14 Oct 2016, 04:43
                                  0
                                  • N Naveen_D
                                    13 Oct 2016, 12:46

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

                                    jsulmJ Offline
                                    jsulmJ Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on 14 Oct 2016, 04:43 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

                                    N 1 Reply Last reply 14 Oct 2016, 08:52
                                    1
                                    • jsulmJ jsulm
                                      14 Oct 2016, 04:43

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

                                      N Offline
                                      N Offline
                                      Naveen_D
                                      wrote on 14 Oct 2016, 08:52 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 14 Oct 2016, 20:05 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
                                        • N Offline
                                          N Offline
                                          Naveen_D
                                          wrote on 18 Oct 2016, 11:50 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

                                          M 1 Reply Last reply 18 Oct 2016, 12:20
                                          0

                                          5/87

                                          12 Oct 2016, 13:18

                                          topic:navigator.unread, 82
                                          • Login

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