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.bmp
Audio.swp

  1.  
  2. Dim speaks, speech
  3.  
  4. Sub main()
  5.  
  6. Set speech = CreateObject("sapi.spvoice")
  7. speaks = "This macro has finished."
  8. speech.Speak speaks
  9.  
  10. End Sub
  11.