Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QTextToSpeech/QSpeech doesn't work after export.
Forum Updated to NodeBB v4.3 + New Features

QTextToSpeech/QSpeech doesn't work after export.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 3 Posters 478 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.
  • P Offline
    P Offline
    philfromflorida
    wrote on last edited by
    #1

    I am working on a project including the TextToSpeech module. My application works perfectly fine in the QT Creator but when I deploy it using my/path/to/windeployqt.exe . everything works except for the TextToSpeech part.
    This is my only code from the TextToSpeech module.

    QT       += core gui texttospeech multimedia
    
    QTextToSpeech speech;
    MainWindow::MainWindow(QWidget *parent)
        : QMainWindow(parent)
        , ui(new Ui::MainWindow)
    {
        speech.setLocale(QLocale("en_US"));
        ui->setupUi(this);
        ui->correct->hide();
    
        music = new QMediaPlayer();
    
    }
    
    void MainWindow::sayWord() {
        example = list[i];
        checked = false;
        speech.say(example);
    }
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Did you check that all the dependencies of the module are deployed ?

      On a side note, using a static QTextToSpeech object like that is wrong. QApplication should be the first QObject created as it does some internal initialisation.

      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
      1
      • P Offline
        P Offline
        philfromflorida
        wrote on last edited by
        #3

        @SGaist I fixed the problem of having the QTextToSpeech object like that by moving the object to the private section of the header file.
        However, I want to check my deployment command line:

        windeployqt MyApp.exe
        

        Finally, how do I check that all the dependencies of the module are deployed?

        jsulmJ 1 Reply Last reply
        0
        • P philfromflorida

          @SGaist I fixed the problem of having the QTextToSpeech object like that by moving the object to the private section of the header file.
          However, I want to check my deployment command line:

          windeployqt MyApp.exe
          

          Finally, how do I check that all the dependencies of the module are deployed?

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

          @philfromflorida said in QTextToSpeech/QSpeech doesn't work after export.:

          how do I check that all the dependencies of the module are deployed?

          You can use https://lucasg.github.io/Dependencies/ tool

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

          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