FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour VOice with Ole
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
VOice with Ole
Posted: Wed Nov 05, 2008 11:16 PM

How know when voice is speaking something and how know when no is talking !

thanks

Posts: 199
Joined: Tue Apr 22, 2008 09:54 AM
Re: VOice with Ole
Posted: Thu Nov 06, 2008 07:48 AM
lailton.webmaster wrote:How know when voice is speaking something and how know when no is talking !

thanks


Lailton,

It can be controlled by EVENTS... but Harbour and xHarbour don´t provide it in OleAuto objects. :-)

In SAPI 5.1 there are two events for it:

The StartStream event occurs when the text-to-speech (TTS) engine begins speaking a stream for the SpVoice object.
The EndStream event occurs when the text-to-speech (TTS) engine reaches the end of a stream while speaking for the SpVoice object.
The StartStream and EndStream events can be used together to determine the duration of a stream being spoken.

Sorry. :-)
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
hu
Posted: Thu Nov 06, 2008 09:50 AM

Thanks brother

and it not possible with ActiveX Object ?

thaks

Posts: 199
Joined: Tue Apr 22, 2008 09:54 AM
VOice with Ole
Posted: Thu Nov 06, 2008 10:44 AM
Lailton,

I tried with
oActiveX = TActiveX():New( oWnd, "Sapi.SPVoice" )

But is not an ActiveX object an causes a windows error... also with the parameter WithEvents
oVoice := tOleAuto():New( "Sapi.SPVoice", "WithEvents" )

but appears do nothing...
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
VOice with Ole
Posted: Thu Nov 06, 2008 10:56 AM

ya i can understand, with ole is OK

more i think that no have form to cotrol everything event

more thanks so much

Posts: 199
Joined: Tue Apr 22, 2008 09:54 AM
VOice with Ole
Posted: Thu Nov 06, 2008 12:25 PM
lailton.webmaster wrote:more i think that no have form to cotrol everything event


That's right!... if it were an ActiveX object, we could do it, but harbour and xHarbour (in his no commercial form) don´t provide an OleAuto events handle, but they do for ActiveX...

Best Regards!

Continue the discussion