Message 1 of 15
Fun time with speak function

Not applicable
03-18-2015
07:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys... I have found thread over at Swamp for integrating SPEAK function into ACAD.
http://www.theswamp.org/index.php?topic=14549.75
I am trying to make it work but my skills are still quite poor.
I would like to make acad say Kaboom when I explode ...
I did this simple code but it is not really synchronized 🙂 it works , but tone is too low and it says "Kaboom" before i actualy select and explode object.
(defun C:exx () (command "explode") (setq sapi (vlax-create-object "Sapi.SpVoice")) (vlax-invoke sapi "Speak" "Kaboom" 0) (vlax-release-object sapi))
I would like to see principle , to have simple function that after it is done says something or even better play a sound. Also I would need to have volume up.
Thanks
Jan