This is a short macro to demonstrate text to speech capabilities. A
computer generated voice speaks any text. The text on line 7 will be read aloud by the computer. There are more simple macros on the
SolidWorks Macros page.
Audio.swp
- Dim speaks, speech
- Sub main()
- Set speech = CreateObject("sapi.spvoice")
- speaks = "This macro has finished."
- speech.Speak speaks
- End Sub