I have a personal project I'm working on that requires Microsoft SAPI5 -- text to speech and Speech Recognition. I have already built out a lot of the application, but I've decided to switch and try to learn the Qt Framework, as it will make a lot of things much simpler.
The project won't build as it can't find the header files from the Windows SDK. I can't figure out where I went wrong.
I've done my best to edit my .pro file. In addition to what's below, I also tried a version where I explicitly listed the header files, but it still couldn't find the file.
Error: sapi.h: No such file or directory
Includes in speech.h:
#include <QObject>
#include <sapi.h>
My .pro file:
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
P.S. I'd like to keep it cross platform compatible, but can find no Qt libraries for doing dictation based Speech Recognition and text-to-speech. If anyone knows of one, please let me know.
P.S.S. I've been searching for this answer for about two hours on the internet, including a thorough search of this website. I found nothing that helped.