Author Topic: speech in freebasic  (Read 13398 times)

0 Members and 1 Guest are viewing this topic.

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: speech in freebasic
« Reply #20 on: October 21, 2007 »
Quote
now 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:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: speech in freebasic
« Reply #21 on: October 21, 2007 »
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:

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: speech in freebasic
« Reply #22 on: October 21, 2007 »
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:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: speech in freebasic
« Reply #23 on: October 22, 2007 »
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:

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: speech in freebasic
« Reply #24 on: October 22, 2007 »
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.
« Last Edit: October 22, 2007 by ninogenio »
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: speech in freebasic
« Reply #25 on: October 22, 2007 »
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: