Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Newest package in the old version Qt
Qt 6.12 LTS is out! See what's new in the release blog

Newest package in the old version Qt

Scheduled Pinned Locked Moved Solved Installation and Deployment
23 Posts 3 Posters 19.4k 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.
  • SGaistS SGaist

    Did you start a MinGW enabled command line to build that volume ?

    You can also open it in Qt Creator and build it from there.

    M Offline
    M Offline
    maratk1n
    wrote on last edited by maratk1n
    #10

    @SGaist
    And so, I opened the project qtspeech-opensource-src-5.9.0.pro in Qt Creator.
    I get an error

    flite/flite.h: No such file or directory
     #include <flite/flite.h>
                             ^
    

    I suspect that in the future there will be errors related to the lack of sapi.h, atlbase.h.
    I solved the problem with the sapi, but for the ATL I will have to install the visual studio, which I do not want to do.
    Now I use Qt 5.6.1 MinGW

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

      You might what to try with a more recent version. You should check with the 5.11 branch.

      By the way, do you have flite installed ?

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

      M 1 Reply Last reply
      0
      • SGaistS SGaist

        You might what to try with a more recent version. You should check with the 5.11 branch.

        By the way, do you have flite installed ?

        M Offline
        M Offline
        maratk1n
        wrote on last edited by
        #12

        @SGaist
        I hardly installed a new Qt, engines and voices. But there was a problem:
        If I run from the Qt Creator, everything works fine. But I tried to start directly, having previously collected the libraries with windeployqt.exe. There is no sound for some reason .. The app does not see a single voice

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

          What exact error do you get ?

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

          M 1 Reply Last reply
          0
          • SGaistS SGaist

            What exact error do you get ?

            M Offline
            M Offline
            maratk1n
            wrote on last edited by maratk1n
            #14

            @SGaist
            I run the application without Qt Creator, so I can not get the debug output. The application works without errors, just a list of votes is empty (I bring this list to the QComboBox).
            But if I run the same program through Creator, the list of votes is full.

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

              How are you filing that QComboBox ?

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

              M 1 Reply Last reply
              0
              • SGaistS SGaist

                How are you filing that QComboBox ?

                M Offline
                M Offline
                maratk1n
                wrote on last edited by
                #16

                @SGaist

                QVector<QVoice> m_voices = speech.getAvailableVoices();
                QVoice currentVoice = speech.getVoice();
                foreach (const QVoice &voice, m_voices) {
                    ui->speechVoices->addItem(QString("%1 - %2 - %3").arg(voice.name())
                                      .arg(QVoice::genderName(voice.gender()))
                                      .arg(QVoice::ageName(voice.age())));
                    if (voice.name() == currentVoice.name())
                        ui->speechVoices->setCurrentIndex(ui->speechVoices->count() - 1);
                }
                

                class SpeechWorker:

                // .h
                
                #ifndef SPEECHWORKER_H
                #define SPEECHWORKER_H
                
                #include <QtTextToSpeech>
                #include <QLocale>
                
                class SpeechWorker
                {
                    QTextToSpeech m_speech;
                public:
                    SpeechWorker();
                    ~SpeechWorker() {}
                    void say(const QString &text, bool stopPrevious = false){
                        if (stopPrevious)
                            m_speech.stop();
                        m_speech.say(text);
                    }
                    QVector<QVoice> getAvailableVoices(){
                        return m_speech.availableVoices();
                    }
                    QVoice getVoice(){
                        return m_speech.voice();
                    }
                    void setVoice(int index){
                        if((m_speech.availableVoices().size() < index) || (index < 0))
                            return;
                        m_speech.setVoice(m_speech.availableVoices().at(index));
                    }
                };
                extern SpeechWorker speech;
                #endif // SPEECHWORKER_H
                
                // .cpp
                #include "speechworker.h"
                
                SpeechWorker speech;
                
                SpeechWorker::SpeechWorker()
                {
                    m_speech.setLocale(QLocale(QLocale::Russian, QLocale::RussianFederation));
                    m_speech.setRate(0.4); //скорость от -1 до 1
                    m_speech.setPitch(0.2); //высота голоса от -1 до 1
                    m_speech.setVolume(1.0); //громкость от 0 до 1
                }
                

                I noticed an interesting thing. I put the file hello_speak.exe from example next to my executable file and dll's, it works fine.

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  maratk1n
                  wrote on last edited by
                  #17

                  So, what can I do wrong? :(

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

                    You can start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to see if there's any information about that plugin that might be useful.

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

                    M 1 Reply Last reply
                    1
                    • SGaistS SGaist

                      You can start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to see if there's any information about that plugin that might be useful.

                      M Offline
                      M Offline
                      maratk1n
                      wrote on last edited by
                      #19

                      @SGaist
                      I did

                      #include "mainwindow.h"
                      #include <QApplication>
                      
                      
                      int main(int argc, char *argv[])
                      {
                          qputenv("QT_DEBUG_PLUGINS", QByteArray("1"));
                      
                          QApplication app(argc, argv);
                          app.setApplicationDisplayName("ПАЗИ-100");
                          QFont font = app.font();
                          font.setPointSize(13);
                          app.setFont(font);
                          MainWindow w;
                          //w.setWindowFlags(Qt::CustomizeWindowHint);
                          w.show();
                          return app.exec();
                      }
                      

                      But he did not receive any messages. As before, my application does not see voices, and the application hello_speak.exe, which is in the same directory, sees everything fine.

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

                        Are you starting the application from the command line ?

                        If the other one is working, you should compare your code with it to see if you are doing something different.

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

                        M 1 Reply Last reply
                        1
                        • SGaistS SGaist

                          Are you starting the application from the command line ?

                          If the other one is working, you should compare your code with it to see if you are doing something different.

                          M Offline
                          M Offline
                          maratk1n
                          wrote on last edited by
                          #21

                          @SGaist said in Newest package in the old version Qt:

                          Are you starting the application from the command line ?

                          Sorry, I did wrong.
                          I added to the .pro file CONFIG += console and received a message

                          No text-to-speech plug-ins were found.
                          

                          @SGaist said in Newest package in the old version Qt:

                          you should compare your code

                          I compared and still compare. I do not see the difference: (

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

                            Then I'd check with Dependency Walker if there's anything different in the libraries linked to both applications.

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

                            M 1 Reply Last reply
                            1
                            • SGaistS SGaist

                              Then I'd check with Dependency Walker if there's anything different in the libraries linked to both applications.

                              M Offline
                              M Offline
                              maratk1n
                              wrote on last edited by
                              #23

                              @SGaist
                              It seems I solved this problem!
                              windeployqt got me files in this form

                              c:\PAZI100\audio
                              c:\PAZI100\bearer
                              c:\PAZI100\config.ini
                              c:\PAZI100\D3Dcompiler_47.dll
                              c:\PAZI100\hello_speak.exe
                              c:\PAZI100\iconengines
                              c:\PAZI100\imageformats
                              c:\PAZI100\libEGL.dll
                              c:\PAZI100\libgcc_s_dw2-1.dll
                              c:\PAZI100\libGLESV2.dll
                              c:\PAZI100\libstdc++-6.dll
                              c:\PAZI100\libwinpthread-1.dll
                              c:\PAZI100\mediaservice
                              c:\PAZI100\opengl32sw.dll
                              c:\PAZI100\Pazi100.exe
                              c:\PAZI100\platforms
                              c:\PAZI100\playlistformats
                              c:\PAZI100\printsupport
                              c:\PAZI100\Qt5Core.dll
                              c:\PAZI100\Qt5Gui.dll
                              c:\PAZI100\Qt5Multimedia.dll
                              c:\PAZI100\Qt5Network.dll
                              c:\PAZI100\Qt5PrintSupport.dll
                              c:\PAZI100\Qt5SerialPort.dll
                              c:\PAZI100\Qt5Svg.dll
                              c:\PAZI100\Qt5TextToSpeech.dll
                              c:\PAZI100\Qt5Widgets.dll
                              c:\PAZI100\texttospeech
                              c:\PAZI100\translations
                              c:\PAZI100\audio\qtaudio_windows.dll
                              c:\PAZI100\bearer\qgenericbearer.dll
                              c:\PAZI100\bearer\qnativewifibearer.dll
                              c:\PAZI100\iconengines\qsvgicon.dll
                              c:\PAZI100\imageformats\qgif.dll
                              c:\PAZI100\imageformats\qicns.dll
                              ...
                              c:\PAZI100\mediaservice\dsengine.dll
                              c:\PAZI100\mediaservice\qtmedia_audioengine.dll
                              c:\PAZI100\platforms\qwindows.dll
                              c:\PAZI100\playlistformats\qtmultimedia_m3u.dll
                              c:\PAZI100\printsupport\windowsprintersupport.dll
                              >>>                Wrong:     c:\PAZI100\texttospeech\qtexttospeech_sapi.dll
                              c:\PAZI100\translations\qt_bg.qm
                              ...
                              

                              I added a folder and voices appeared.

                              c:\PAZI100>dir /s /b
                              c:\PAZI100\audio
                              c:\PAZI100\bearer
                              c:\PAZI100\config.ini
                              c:\PAZI100\D3Dcompiler_47.dll
                              c:\PAZI100\hello_speak.exe
                              c:\PAZI100\iconengines
                              c:\PAZI100\imageformats
                              c:\PAZI100\libEGL.dll
                              c:\PAZI100\libgcc_s_dw2-1.dll
                              c:\PAZI100\libGLESV2.dll
                              c:\PAZI100\libstdc++-6.dll
                              c:\PAZI100\libwinpthread-1.dll
                              c:\PAZI100\mediaservice
                              c:\PAZI100\opengl32sw.dll
                              c:\PAZI100\Pazi100.exe
                              c:\PAZI100\platforms
                              c:\PAZI100\playlistformats
                              c:\PAZI100\plugins
                              c:\PAZI100\Qt5Core.dll
                              c:\PAZI100\Qt5Gui.dll
                              c:\PAZI100\Qt5Multimedia.dll
                              c:\PAZI100\Qt5Network.dll
                              c:\PAZI100\Qt5PrintSupport.dll
                              c:\PAZI100\Qt5SerialPort.dll
                              c:\PAZI100\Qt5Svg.dll
                              c:\PAZI100\Qt5TextToSpeech.dll
                              c:\PAZI100\Qt5Widgets.dll
                              c:\PAZI100\translations
                              c:\PAZI100\audio\qtaudio_windows.dll
                              c:\PAZI100\bearer\qgenericbearer.dll
                              c:\PAZI100\bearer\qnativewifibearer.dll
                              c:\PAZI100\iconengines\qsvgicon.dll
                              c:\PAZI100\imageformats\qgif.dll
                              ...
                              c:\PAZI100\mediaservice\dsengine.dll
                              c:\PAZI100\mediaservice\qtmedia_audioengine.dll
                              c:\PAZI100\platforms\qwindows.dll
                              c:\PAZI100\playlistformats\qtmultimedia_m3u.dll
                              c:\PAZI100\plugins\printsupport
                              c:\PAZI100\plugins\texttospeech
                              c:\PAZI100\plugins\printsupport\windowsprintersupport.dll
                              >>>                     Right:              c:\PAZI100\plugins\texttospeech\qtexttospeech_sapi.dll
                              c:\PAZI100\translations\qt_bg.qm
                              ...
                              

                              After replacing the folders, the program hello_speak.exe still worked. It's strange that two programs behave differently.
                              Thanks a lot for your help!

                              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
                              • Unsolved