Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

C TO DELPHI ?????

0 views
Skip to first unread message

張世昌

unread,
Jan 2, 1997, 3:00:00 AM1/2/97
to




OpenSpeech initiate a session with the Speech Engine

CloseSpeech close a session with the Speech Engine

Say speak a buffer-full of text. Does not return until all the text is

spoken.


Function prototypes for these routines are as follows:

void FAR PASCAL CloseSpeech (long SCB);

long FAR PASCAL OpenSpeech (HWND hwnd, WORD mode, LPSR voiceType);

int FAR PASCAL Say (long SCB, LPSTR lpText);



The OpenSpeech routine must be called once and only once before any of
the other speech routines can be used. It returns a SpeechControlBlock
(SCB) which is required when calling any subsequent speech routines.

Before terminating, your application must call CloseSpeech for the SCB
that was opened. There is a snippet of code that calls all three of
these functions:


LONG lSCB;
lSCB = OpenSpeech (0, 0, NULL);
Say (lSCB, "Hello world.");
Say (lSCB, "Hello Again.");
CloseSpeech (lSCB);


If you are using the Microsoft of Borland linkers, and wish to
explicitly import these DLL functions, you will need to add the
following lines to your .DEF file:

IMPORTS
FB_SPCH.CLOSESPEECH
FB_SPCH.OPENSPEECH
FB_SPCH.SAY


請幫我轉成DELHPI語言.....

張世昌

unread,
Jan 2, 1997, 3:00:00 AM1/2/97
to


張世昌 <shrc...@ms10.hinet.net> 次寫入到主題
<01bbf87a$bdc7b120$74995fa8@HINET>...

0 new messages