VOice with Ole

VOice with Ole

Postby lailton.webmaster » Wed Nov 05, 2008 11:16 pm

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

thanks
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: VOice with Ole

Postby triumvirato » Thu Nov 06, 2008 7: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. :cry:

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. :cry:
triumvirato
 
Posts: 199
Joined: Tue Apr 22, 2008 9:54 am
Location: Valladolid, Spain.

hu

Postby lailton.webmaster » Thu Nov 06, 2008 9:50 am

Thanks brother

and it not possible with ActiveX Object ?

thaks
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Postby triumvirato » Thu Nov 06, 2008 10:44 am

Lailton,

I tried with
Code: Select all  Expand view
oActiveX = TActiveX():New( oWnd, "Sapi.SPVoice" )

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

but appears do nothing...
triumvirato
 
Posts: 199
Joined: Tue Apr 22, 2008 9:54 am
Location: Valladolid, Spain.

Postby lailton.webmaster » 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
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Postby triumvirato » 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!
triumvirato
 
Posts: 199
Joined: Tue Apr 22, 2008 9:54 am
Location: Valladolid, Spain.


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 56 guests