• Welcome to Dark Bit Factory & Gravity.
 

speech in freebasic

Started by Jim, January 09, 2007

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rbz

Quotenow is it just a case of linking my project to the libs and headers and will my compiled exe atomatically  be shipped with the required libs built in to run on other systems.
Yes, I think it will work on other XP config too.

Anyway try the attached file below, maybe it can help you.

Challenge Trophies Won:

Jim

I thought everything you need is in the platform SDK?  It should be relatively easy to port the basic FB stuff to C++.  Don't even think about doing it in C - you'll hit the same roadblock as I did with FB.  Doing COM in FB is painfull!
Jim
Challenge Trophies Won:

ninogenio

that works fine rbraz cheers mate,

@jim dev c++ doesnt come with sapi.h or the libs so i tryed dl the redist sdk but when i unzip it all i have is msm files that add up to 128 megs worth, so im not sure where to go.
Challenge Trophies Won:

Jim

The msm packages are probably no good to you.  They enable you to distribute the SAPI SDK itself, which isn't what you want to do.

Go here
http://www.microsoft.com/downloads/details.aspx?FamilyID=5e86ec97-40a7-453f-b0ee-6583171b4530&DisplayLang=en
And download 'SpeechSDK51.exe'. 
Extract the zip and run setup.exe

You'll need to add
C:\Program Files\Microsoft Speech SDK 5.1\Include
C:\Program Files\Microsoft Speech SDK 5.1\Lib\i386
to the include/lib folders in DevC++

Jim
Challenge Trophies Won:

ninogenio

#24
cheers jim!

i think im really close to getting something going but im getting two linker errors

  [linker error] undefined reference to `IID_ISpVoice'
  [linker error] undefined reference to `CLSID_SpVoice'

and when i try to include the sapi.lib under project->project options->parameters i get

  .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' unrecognized

ive looked around but cant see any other libs that are going to fix it up.

edit - actually  .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' unrecognized
is just a warning and it runs fine. guess it was never meant to run under dev c so a warning or two is expected.
Challenge Trophies Won:

Jim

Ignore that warning.  FB gives it too.  Microsoft are adding manufacturer specific chunks to the .obj/.lib files that other vendors don't understand (yet).

Jim
Challenge Trophies Won: