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. Installing QTSpeech
Forum Updated to NodeBB v4.3 + New Features

Installing QTSpeech

Scheduled Pinned Locked Moved Unsolved General and Desktop
27 Posts 4 Posters 8.9k Views 1 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.
  • quentinthorntonQ Offline
    quentinthorntonQ Offline
    quentinthornton
    wrote on last edited by
    #11

    Okay, so I got that done, but I had to do it with a different qtspeech thing I got from here, because the other one had some errors when I tried it. But anyways, I tried to make a project and use qtspeech but it didn't work. I even put the full path to the header file in the qtspeech folder in the #include. After putting the full path, it doesn't give an error on the include anymore, but when I try to make a qtspeech object

    QtSpeech voice;//it says right here: QtSpeech undeclared identifier.
    voice.say("hello world");
    

    Do I need to do something else after those last steps you told me? Thanks for your time.

    1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #12

      Is QtSpeech in a namespace?

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

      1 Reply Last reply
      0
      • quentinthorntonQ Offline
        quentinthorntonQ Offline
        quentinthornton
        wrote on last edited by quentinthornton
        #13

        No, at least I don't think so. Do I just have to do something in the project file (the .pro file)? I tried add the qtspeech.h as a header. Like this..

        HEADERS += "C:/Users/Quentin/Downloads/qtspeech-master/QtSpeech.h"
        SOURCES += "C:/Users/Quentin/Downloads/qtspeech-master/QtSpeech_win.cpp" // and added the .cpp file like this.
        

        But nothing I tried worked. How would I go about adding it into a namespace? Thanks.

        1 Reply Last reply
        0
        • quentinthorntonQ Offline
          quentinthorntonQ Offline
          quentinthornton
          wrote on last edited by
          #14

          I can't seem to find anything online, they all are showing how to install libraries it they have a .lib file. QtSpeech doesn't seem to have one. Any Idea how I should add it to my project? Thanks.

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

            One thing you can do is to add

            include(C:/Users/Quentin/Downloads/qtspeech-master/qtspeech.pri)
            

            to your .pro file so it will build everything with your project.

            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
            0
            • quentinthorntonQ Offline
              quentinthorntonQ Offline
              quentinthornton
              wrote on last edited by
              #16

              Since I can't seem to figure out how to get the one working, could you please tell me how to install the one you suggested to me? Seeing now, they both were getting errors likely because I didn't install them properly. Thanks.

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

                What errors are you getting ?

                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
                0
                • quentinthorntonQ Offline
                  quentinthorntonQ Offline
                  quentinthornton
                  wrote on last edited by
                  #18

                  The one you sent me:
                  :-1: error: Failed to run: perl -w C:\Qt\5.4\msvc2013_64\bin\syncqt.pl -module QtTextToSpeech -version 5.8.0 -outdir C:/Qt/5.4/msvc2013_64 C:/Users/Caiden/qtspeech

                  This happens when I open up the qtspeech.pro file and click run.

                  And then I get an error when I try to make a project an use the qtspeech library I got from here saying it doesn't recognize the library.
                  Basically, I can't figure out how to properly add the library to a project.

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

                    Did you clone the repository or download an archive ?

                    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
                    0
                    • quentinthorntonQ Offline
                      quentinthorntonQ Offline
                      quentinthornton
                      wrote on last edited by
                      #20

                      I cloned it.

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

                        Then, do you have perl installed on your system ?

                        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
                        0
                        • quentinthorntonQ Offline
                          quentinthorntonQ Offline
                          quentinthornton
                          wrote on last edited by
                          #22

                          No, I just installed it and now it works, just several warning messages saying GetVersionExW was declared deprecated. How would I include it in a project now? Thanks.

                          1 Reply Last reply
                          0
                          • quentinthorntonQ Offline
                            quentinthorntonQ Offline
                            quentinthornton
                            wrote on last edited by
                            #23

                            Wait, nevermind, it works!! Thanks so much for your time and patience. I can't wait to start finishing up my project tomorrow! Did it just recognize it as a library when I ran it and then it installed it? Or was it something to do with perl, did it install it somehow?

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

                              perl was needed to run some script. Once that done, nmake install did install the module within your Qt installation.

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

                              saitejS 1 Reply Last reply
                              0
                              • quentinthorntonQ Offline
                                quentinthorntonQ Offline
                                quentinthornton
                                wrote on last edited by
                                #25

                                oh, okay. That makes sense. Thanks again.

                                1 Reply Last reply
                                0
                                • SGaistS SGaist

                                  perl was needed to run some script. Once that done, nmake install did install the module within your Qt installation.

                                  saitejS Offline
                                  saitejS Offline
                                  saitej
                                  wrote on last edited by
                                  #26

                                  @SGaist

                                  Hi I am trying to use the same library but on ubuntu. I am getting the following error.
                                  build-qtspeech-Desktop_Qt_5_6_0_GCC_64bit-Debug/tests/auto/texttospeech/tst_qtexttospeech does not exist

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

                                    Looks like you are trying to run the test. Just build the library and call make install.

                                    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
                                    0

                                    • Login

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