I have a personal project I'm working on, which requires Microsoft SAPI5 - text to speech and speech recognition. I already developed many applications, but I decided to switch and try to learn the Qt Framework, as this will greatly simplify a lot.
The project will not be created because it cannot find the header files from the Windows SDK. I can’t understand where I was wrong.
I did my best to edit my .pro file. In addition to the one below, I also tried the version where I explicitly listed the header files, but it still could not find the file.
Error: sapi.h: no such file or directory
Includes in speech.h:
#include <QObject> #include <sapi.h>
My .pro file is:
QT += core gui TARGET = QT_River TEMPLATE = app INCLUDEPATH += "C:\Projects\custom libraries\include" \ "C:\Program Files\Microsoft SDKs\Windows\v7.1\Include"; win32:LIBS += "C:\Projects\custom libraries\lib_dbg" \ "C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib"; SOURCES += main.cpp \ window.cpp \ speech.cpp HEADERS += window.h \ speech.h FORMS += RESOURCES += \ systray.qrc
PS I would like it to be cross-platform compatible, but cannot find any Qt libraries for performing speech recognition based on dictation and text-to-speech conversion. If anyone knows about one, please let me know.
PSS I searched for this answer for two hours on the Internet, including a thorough search of this website. I did not find anything that helped.
source share