Article View: borland.public.cppbuilder.nativeapi
Article #5595Re: SAPI and BCB where is the BCB compatible lib?
From: Mike Harris
Date: Wed, 03 Aug 2005 16:34
Date: Wed, 03 Aug 2005 16:34
31 lines
1755 bytes
1755 bytes
try these setps...
1 ) import type lib.
Type Lib: C:\Program Files\Common Files\Microsoft Shared\Speech\sapi.dll
2 ) #include "resulting_TLB.h"
please do not cretique. it is sample code
3 )
namespace { // anon
ISpeechVoicePtr VoicePtr;
SpeechVoiceSpeakFlags eSpeechVoiceSpeakFlags = SVSFDefault;
};
4 ) Button1Click(TObject *Sender)
{
if (!VoicePtr)
VoicePtr = CoSpVoice::Create();
if (!VoicePtr) return;
VoicePtr->Speak(WideString("Hello world"), eSpeechVoiceSpeakFlags);
}
"Stefano Bonifazi" <stefboombastic@libero.it> wrote in message
news:42f0e4ac$1@newsgroups.borland.com...
> Hi all!
> I'm trying to make SAPI working with BCB, of course the matter is with the
> Microsoft sapi.lib that's a COFF ...
Technical Details
Message-ID:
<42f0f217$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42f0e4ac$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9accb675a10a23dc X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Mike Harris" <nospam@nospam.com> From: "Mike Harris" <nospam@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <42f0e4ac$1@newsgroups.borland.com> Subject: Re: SAPI and BCB where is the BCB compatible lib? Date: Wed, 3 Aug 2005 11:34:36 -0500 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 204.110.228.254 Message-ID: <42f0f217$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1123086871 204.110.228.254 (3 Aug 2005 09:34:31 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail