VBA & WORD2000 - I don't see some events occuring with ActiveX Con

J

John Sherry

Hi
I am trying to use the TextToSpeech ActiveX Contol (in Vtext.dll) in VBA in
a Word 2000 application running under Win2K.
I have inserted the ActiveX control into a UserForm.

I can get the ActiveX Control to speak text no problem, however I have to
use polling rather than event driven. I would of course prefer to use event
driven.

In the VBE I see 11 different events available, but the only two that seem
to occur are the "_Enter" and "_Exit" events.

If test the ActiveX control in the "ActiveX Control Test Container" supplied
with Visual C++, I do see some of the other events occuring eg "_Visual",
"_SpeakingStarted" and "_SpeakingDone" events.

Has anybody any ideas on what I'm doing wrong in VBA?

Many Thanks in Advance
 
W

Word Heretic

G'day "John Sherry" <[email protected]>,

There are 2 ways to invoke TTS: asynch or synch. This drastically
changes the required 'event model'.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


John Sherry reckoned:
 
B

Brandon Jones

You might want to consider downloading Speech 6 (SAPI6) from Microsoft.com.
It includes an impressive and greatly simplified TTS and Speech core. The
SDK has extensive VB examples too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top