Share via


Speech Object

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Application
Aa168063.parchild(en-us,office.10).gifSpeech

Contains methods and properties that pertain to speech.

Using the Speech object

Use the Speech property of the Application object to return a Speech object.

Once a Speech object is returned, you can use the Speak method of Speech object to play back the contents of a string. In the following example, Microsoft Excel plays back "Hello". This example assumes speech features have been installed on the host system.

  Sub UseSpeech()

    Application.Speech.Speak "Hello"

End Sub()

Note   There is a speech feature in the setup tree that pertains to Dictation and Command & Control that does not have to be installed.