Application.Speech

M

MTBer

Application.Speech
How does this work and what do I need to do my pc to get it working?
I'm running XP with Office 2002.

In the VBE I set a reference to the Speech Object library, and trien
the example from the help file;

Application.Speech.Speak "Hello"

but I get a runtime error 1004.

what does this mean line in the help screen mean;

-This example assumes speech features have been installed on the hos
system. -

I checked my speech settings through the control panel and had th
options there and the SAM voice.

I assume I need some extra software on my PC?

Thank for your hel
 
R

ross

Hi,
Not sure, but i think office 2002 may use v6 of ms speack engine, and
win 2000 may come with v 5.1.

It might be that app~.speach "hello" is olny an option for v6?

you can download the latest engine from the ms site somewhere, but A
lot of developers are sicking with 5.1 as it has more vocie and has
wider support.

Sorry not to be of more help

Ross
 
S

ste mac

MTBer, this was posted from keepitcool... it may help

Have you tried Microsoft Knowledge base?
KB 277808

just a basic error trap...
try it.. if you get an error report it..

Sub SayHello()
On Error GoTo handler
Application.Speech.Speak ("Hello")
handler:
If Err.Number = 1004 Then
MsgBox "This macro requires Text to Speech to be installed."
End If
End Sub

seeya ste
 

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