Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Help on SAPI.LIB
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Paolo Borlandi  
View profile  
 More options Jan 9 2005, 1:06 pm
Newsgroups: borland.public.cppbuilder.nativeapi
From: "Paolo Borlandi" <pborla...@virgilio.it>
Date: Sun, 9 Jan 2005 19:06:59 +0100
Local: Sun, Jan 9 2005 1:06 pm
Subject: Help on SAPI.LIB
I'm trying to use Microsoft Speech SDK but i'm having problems in linking
the test program. The following errors arise:

[Linker Error] Unresolved external '_IID_ISpVoice' referenced from
D:\BORLAND\CBUILDER5\PROJECTS\UNIT1.OBJ
[Linker Error] Unresolved external '_CLSID_SpVoice' referenced from
D:\BORLAND\CBUILDER5\PROJECTS\UNIT1.OBJ

Have some help? I think the sapi.lib is not ok...

THANK YOU VERY MUCH!!!

Paolo from Italy


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vladimir Stefanovic  
View profile  
 More options Jan 9 2005, 1:53 pm
Newsgroups: borland.public.cppbuilder.nativeapi
From: "Vladimir Stefanovic" <antiv...@po.sbb.co.yu>
Date: Sun, 9 Jan 2005 19:53:38 +0100
Local: Sun, Jan 9 2005 1:53 pm
Subject: Re: Help on SAPI.LIB
Go here:

   http://www.microsoft.com/msagent/downloads/user.asp

and download:

   1. MS Agent Core Component
   2. Text-to-speech engine
   3. SAPI 4 Runtime binaries

Install all (sequence is not important)

Then go to BCB:

   Main Menu / Component / Import Active X Control

Scroll down untill you see in the 'Class name' area:
   TTextToSpeech

Install it (and build)

I'm not sure, I think that you should install the package
here, via:

   Main Menu / Component / Install packages

... but I realy cannot remember. Try yourself anyway.

TTextToSpeech should appear as a component at
ActiveX tab.

If you drag/dropped the component on your form, you
can use it something like this:

   TextToSpeech->Speak( (WideString)"Say something" );

Also see the rest of the downloads on MS site because there
are some nice things you can use in your projects.

Best regards,
Vladimir Stefanovic

"Paolo Borlandi" <pborla...@virgilio.it> wrote in message

news:41e172ce@newsgroups.borland.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Remy Lebeau (TeamB)  
View profile  
 More options Jan 10 2005, 3:10 am
Newsgroups: borland.public.cppbuilder.nativeapi
From: "Remy Lebeau \(TeamB\)" <no.s...@no.spam.com>
Date: Mon, 10 Jan 2005 00:10:11 -0800
Local: Mon, Jan 10 2005 3:10 am
Subject: Re: Help on SAPI.LIB

"Vladimir Stefanovic" <antiv...@po.sbb.co.yu> wrote in message

news:41e17dad$1@newsgroups.borland.com...

> Go here:

>    http://www.microsoft.com/msagent/downloads/user.asp

> and download:

>    1. MS Agent Core Component
>    2. Text-to-speech engine
>    3. SAPI 4 Runtime binaries

You don't need MSAgent in order to use SAPI.  SAPI is standalone, it does
not use MSAgent.  MSAgent, on the other hand, uses SAPI.

Gambit


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Remy Lebeau (TeamB)  
View profile  
 More options Jan 10 2005, 3:50 am
Newsgroups: borland.public.cppbuilder.nativeapi
From: "Remy Lebeau \(TeamB\)" <no.s...@no.spam.com>
Date: Mon, 10 Jan 2005 00:50:27 -0800
Local: Mon, Jan 10 2005 3:50 am
Subject: Re: Help on SAPI.LIB

"Paolo Borlandi" <pborla...@virgilio.it> wrote in message

news:41e172ce@newsgroups.borland.com...

> I'm trying to use Microsoft Speech SDK but i'm having problems
> in linking the test program. The following errors arise:

You did not add the .lib files to your project.  Not only that, but you
cannot use Microsoft .lib files in Borland compilers to begin with.  They
are not compatible.  The best way to get around those errors is to just
define the values in your code directly:

    const IID IID_ISpVoice = {0x6C44DF74, 0x72B9, 0x4992, {0xA1, 0xEC, 0xEF,
0x99, 0x6E, 0x04, 0x22, 0xD4}};

    const CLSID CLSID_SpVoice = {0x96749377, 0x3391, 0x11D2, {0x9E, 0xE3,
0x00, 0xC0, 0x4F, 0x79, 0x73, 0x96}};

Gambit


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paolo Borlandi  
View profile  
 More options Jan 10 2005, 2:40 pm
Newsgroups: borland.public.cppbuilder.nativeapi
From: "Paolo Borlandi" <pborla...@virgilio.it>
Date: Mon, 10 Jan 2005 20:40:42 +0100
Local: Mon, Jan 10 2005 2:40 pm
Subject: Re: Help on SAPI.LIB
Many thanks to all

I did what Mr. Stefanovic said and all is right. Ok MsAgent is not
important. In this way you have the Activexes available in VCL and is very
simple to use them.

Paolo

"Remy Lebeau (TeamB)" <no.s...@no.spam.com> ha scritto nel messaggio
news:41e24163$1@newsgroups.borland.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vladimir Stefanovic  
View profile  
 More options Jan 10 2005, 3:07 pm
Newsgroups: borland.public.cppbuilder.nativeapi
From: "Vladimir Stefanovic" <antiv...@po.sbb.co.yu>
Date: Mon, 10 Jan 2005 21:07:21 +0100
Local: Mon, Jan 10 2005 3:07 pm
Subject: Re: Help on SAPI.LIB
I'm not sure if I was clear enough. For example,
I made a mini dictionary which has a capabilitie
of pronouncing words. I can use the app because
I previously installed the two mentioned exe's from
MS site.

When I want to deploy the app to some other machine
should I also mention that these two exe's should be
installed by the user or there is some other way.

--
Best regards,
Vladimir Stefanovic

"Vladimir Stefanovic" <antiv...@po.sbb.co.yu> wrote in message

news:41e2df9b@newsgroups.borland.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vladimir Stefanovic  
View profile  
 More options Jan 10 2005, 3:03 pm
Newsgroups: borland.public.cppbuilder.nativeapi
From: "Vladimir Stefanovic" <antiv...@po.sbb.co.yu>
Date: Mon, 10 Jan 2005 21:03:45 +0100
Local: Mon, Jan 10 2005 3:03 pm
Subject: Re: Help on SAPI.LIB
Remy, can you please tell me something about
deployment this type of apps, ie when Component
is from the ActiveX tab and has become available
after installing:

   Text-to-speech engine
   SAPI 4 Runtime binaries

Should the user also install these two executables by
himself or there is something more easy?

Best regards,
Vladimir Stefanovic


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Remy Lebeau (TeamB)  
View profile  
 More options Jan 10 2005, 3:10 pm
Newsgroups: borland.public.cppbuilder.nativeapi
From: "Remy Lebeau \(TeamB\)" <no.s...@no.spam.com>
Date: Mon, 10 Jan 2005 12:10:25 -0800
Local: Mon, Jan 10 2005 3:10 pm
Subject: Re: Help on SAPI.LIB

"Remy Lebeau (TeamB)" <no.s...@no.spam.com> wrote in message
news:41e24163$1@newsgroups.borland.com...

> You did not add the .lib files to your project.  Not only that, but
> you cannot use Microsoft .lib files in Borland compilers to begin with.

I forgot to mention that there is a BCB-compatible version of sapi.lib for
SAPI 5 available at http://makefiles.lebeausoftware.org

Gambit


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Remy Lebeau (TeamB)  
View profile  
 More options Jan 10 2005, 3:12 pm
Newsgroups: borland.public.cppbuilder.nativeapi
From: "Remy Lebeau \(TeamB\)" <no.s...@no.spam.com>
Date: Mon, 10 Jan 2005 12:12:16 -0800
Local: Mon, Jan 10 2005 3:12 pm
Subject: Re: Help on SAPI.LIB

"Vladimir Stefanovic" <antiv...@po.sbb.co.yu> wrote in message

news:41e2df9b@newsgroups.borland.com...

> Remy, can you please tell me something about
> deployment this type of apps, ie when Component
> is from the ActiveX tab and has become available
> after installing:

I never import ActiveX controls that way in the first place, but that is
just my personal preference.  I prefer to load them manually in my own code.
Then I have absolute control over their usage.

> Should the user also install these two executables by
> himself or there is something more easy?

Yes, the user must install them, or else the components have nothing to load
at run-time.

Gambit


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vladimir Stefanovic  
View profile  
 More options Jan 10 2005, 3:26 pm
Newsgroups: borland.public.cppbuilder.nativeapi
From: "Vladimir Stefanovic" <antiv...@po.sbb.co.yu>
Date: Mon, 10 Jan 2005 21:26:37 +0100
Local: Mon, Jan 10 2005 3:26 pm
Subject: Re: Help on SAPI.LIB

> I never import ActiveX controls that way in the first place,
> but that is just my personal preference.  I prefer to load
> them manually in my own code. Then I have absolute control
> over their usage.

Remy, how do you 'load them manually'?
(I never did anything similar)

Best regards,
Vladimir Stefanovic


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Remy Lebeau (TeamB)  
View profile  
 More options Jan 10 2005, 3:51 pm
Newsgroups: borland.public.cppbuilder.nativeapi
From: "Remy Lebeau \(TeamB\)" <no.s...@no.spam.com>
Date: Mon, 10 Jan 2005 12:51:05 -0800
Local: Mon, Jan 10 2005 3:51 pm
Subject: Re: Help on SAPI.LIB

"Vladimir Stefanovic" <antiv...@po.sbb.co.yu> wrote in message

news:41e2e4f7@newsgroups.borland.com...

> Remy, how do you 'load them manually'?

By using CoCreateInstance() to instantiate ActiveX controls and then access
their interfaces directly, not via VCL wrappers.

Gambit


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Elias Berelian  
View profile  
 More options Mar 3 2005, 11:16 am
Newsgroups: borland.public.cppbuilder.nativeapi
From: "Elias Berelian" <eli...@voyager.snetnsa.com>
Date: Thu, 3 Mar 2005 11:16:00 -0500
Subject: Re: Help on SAPI.LIB
Hello

We have a similar application where we want to communicate with voice modems
and do Speech Synthesis (SS) & Speech Recognition (SR). First we tried to
use the SapiEngine from TurboPower's AsynchPro version 4 package. It caused
problems, on entry it would say something like "not optimized for phone". We
have a Dialogic 4 port board in a Windows 2000 platform and we are using
BCPPB6. It was able to play wave files and DTMF tones into the phone. But
the output of SS would only work into the sound card speakers. The
application would also crash on exit.

We then looked at this thread of messages and subsequently we tried using
TTextToSpeech as recommended in this thread. We don't have any help files
for this and we don't know how to direct its output into the phone lines.
Sound board speakers still work. No crashes. Also when we try to use
TDirectSS we get:

[C++ Error] TAPIUnit1.h(83): E2015 Ambiguity between 'TDirectSS' and
'Adisapi::TDirectSS'

Does anyone have any suggestions for getting any of these to work? Code
snippets will be appreciated so that if we need to send "handles" we know
how to get a handle.

"Vladimir Stefanovic" <antiv...@po.sbb.co.yu> wrote in message

news:41e17dad$1@newsgroups.borland.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google