Text-to-speech translation feature

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

This feature apparently comes installed in my new computer with XP, as evident by selecting the SPEECH ICON in CONTROL PANEL. What is the step-by-step procedure to actually launch this program to read and speak text, say as in a Word file? Thanks
 
REad the help
-----Original Message-----
This feature apparently comes installed in my new
computer with XP, as evident by selecting the SPEECH ICON
in CONTROL PANEL. What is the step-by-step procedure to
actually launch this program to read and speak text, say
as in a Word file? Thanks
 
"HELP" for TTS seems merely to adjust voice defaults and to listen to a preview as it scans a text sample. I was unable to find clues on how to actually launch the feature to read highlighted selected text, such as in a Word document.
 
Use Text to Speech in Word
The following example uses the Excel object model to access Text to Speech
from a Word document. This procedure demonstrates how to reference and
create an Excel object in order to use the Speech object.

back to the top
Insert a Module into Word
1.. Open a Word document.
2.. Press ALT+F11 to start the Visual Basic Editor.
3.. On the Insert menu, click Module.
4.. Type or copy and paste into the module the sample code that appears
later in this section.
back to the top
Add a Reference to Excel 10 Object Library
1.. In the Visual Basic Editor, point to References on the Tools menu.
2.. Under Available References, select the Microsoft Excel 10.0 Object
Library check box, and then click OK.
back to the top
Sub Procedure to Automate Excel Text to Speech from Word
The following example assumes that you type text in your Word document and
then select the text before you run the Sub procedure.
Sub TTS()
'Declare and create an Excel object.
Dim XL_tts As Excel.Application
Set XL_tts = CreateObject("Excel.Application")
XL_tts.Speech.Speak Selection
XL_tts.Quit
Set XL_tts = Nothing
End Sub
NOTE: Word security is set at high by default. Unsigned Visual Basic
macros do not run in this setting. Change the macro security level to medium
by following these steps:
1.. On the Tools menu, point to Macro, and then click Security.
2.. On the Security Level tab, click to select Medium, and then click OK.
3.. On the File menu, click Exit to quit Word.
NOTE: You must quit and restart Word for the security level change to take
effect.

back to the top
REFERENCES
For additional information, click the article number below to view the
article in the Microsoft Knowledge Base:
277808 XL2002: "Run-time Error 1004" When You Attempt to Use Text to Speech
in Macro

For additional information about getting help with Visual Basic for
Applications, click the article number below to view the article in the
Microsoft Knowledge Base:
163435 VBA: Programming Resources for Visual Basic for Applications

back to the top
The information in this article applies to:
a.. Microsoft Excel 2002
b.. Microsoft Outlook 2002
c.. Microsoft PowerPoint 2002
d.. Microsoft Word 2002
Last Reviewed: 11/24/2003 (2.0)
Keywords: kbenable kbEnableSight kbhowto kbHOWTOmaster KB287120
kbAudITPro


This feature apparently comes installed in my new computer with XP, as
evident by selecting the SPEECH ICON in CONTROL PANEL. What is the
step-by-step procedure to actually launch this program to read and speak
text, say as in a Word file? Thanks
 
Back
Top