Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3752340
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:13:39+00:00 2026-05-19T09:13:39+00:00

I have a personal project I’m working on that requires Microsoft SAPI5 — text

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T09:13:40+00:00Added an answer on May 19, 2026 at 9:13 am

    After many hours this morning, I’ve managed to resolve my problem.

    Rather than using Qt Creator, I’ve decided to use Visual Studio 2010 + Qt 4.7.1. I’ve managed to implement this solution successfully, and have my project off the ground and running now.

    I recommend this approach for anyone trying to use the Windows SDK + Qt.

    This is the resource that helped me (all the information you need is in the question):

    Compiling Qt – Visual Studio 2010

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a personal project that's been online for sometime now. I've been keeping
I have a personal project I've been working on in my spare time. It's
I have a personal project that I'd like to build as an add-in for
Background I have a personal project that I've been trying to build for around
I have a personal learning project that I shelved for awhile but recently decided
I have an old personal project written in Java 1.4 that I am porting
I'm starting a personal project, so I have at the moment complete architectural/design control.
I'm begining the development of a personal Web Application project. I'd like to have
I have a database for a web application that is home to some personal
I have smallish personal project consisting of the following Eclipse workspace. + +-MyApp //

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.