Author Topic: Do you want autocad speak ?  (Read 37943 times)

0 Members and 2 Guests are viewing this topic.

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: Do you want autocad speak ?
« Reply #90 on: October 02, 2008, 12:08:57 PM »
May want to look to see what voices are available first:

;; Check for available voices in registry
(vl-registry-descendents  "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\Voices\\Tokens\\")

<This is why I couldn't change the voice - I only had one voice installed /slaps forehead)
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright 2016

Andrea

  • Water Moccasin
  • Posts: 2360
Re: Do you want autocad speak ?
« Reply #91 on: October 02, 2008, 02:16:09 PM »
May want to look to see what voices are available first:

;; Check for available voices in registry
(vl-registry-descendents  "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\Voices\\Tokens\\")

<This is why I couldn't change the voice - I only had one voice installed /slaps forehead)



or this...

Code: [Select]
(setq objVoice (vlax-create-object "Sapi.SpVoice"))
(setq voice (vlax-get objVoice "Voice"))
(vlax-invoke voice 'GetDescription)
(vlax-release-object objVoice)
(vlax-release-object voice)
Keep smile...

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: Do you want autocad speak ?
« Reply #92 on: October 02, 2008, 05:13:15 PM »
May want to look to see what voices are available first:

;; Check for available voices in registry
(vl-registry-descendents  "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\Voices\\Tokens\\")

<This is why I couldn't change the voice - I only had one voice installed /slaps forehead)
That will give the current voice but not the available voices.....


or this...

Code: [Select]
(setq objVoice (vlax-create-object "Sapi.SpVoice"))
(setq voice (vlax-get objVoice "Voice"))
(vlax-invoke voice 'GetDescription)
(vlax-release-object objVoice)
(vlax-release-object voice)
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright 2016

Andrea

  • Water Moccasin
  • Posts: 2360
Re: Do you want autocad speak ?
« Reply #93 on: October 02, 2008, 06:58:48 PM »
May want to look to see what voices are available first:

;; Check for available voices in registry
(vl-registry-descendents  "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\Voices\\Tokens\\")

<This is why I couldn't change the voice - I only had one voice installed /slaps forehead)
That will give the current voice but not the available voices.....


or this...

Code: [Select]
(setq objVoice (vlax-create-object "Sapi.SpVoice"))
(setq voice (vlax-get objVoice "Voice"))
(vlax-invoke voice 'GetDescription)
(vlax-release-object objVoice)
(vlax-release-object voice)

Yes you'r right.....it was only an example..
we need to use
Code: [Select]
(vlax-for ... maybe ?
Keep smile...

Notsober

  • Guest
Re: Do you want autocad speak ?
« Reply #94 on: October 17, 2008, 10:15:42 AM »
wow. I so want to try this... but have NO IDEA where to start.

could someone please point me in the right direction?

KewlToyZ

  • Guest
Re: Do you want autocad speak ?
« Reply #95 on: October 17, 2008, 01:15:36 PM »
Download this lsp file.
Place a copy of it in your AutoCAD support folder.
(example for AutoCAD MEP 2008)
C:\Documents and Settings\YourUserName\Application Data\Autodesk\ACD-MEP 2008\enu\Support

Open Your AutoCAD, type appload into the command line.
In the dialog box, browse to the folder you copied it to and select sayit.lsp
Click the load button, close the dialog box.
type:
sayit
into the command line.
type what you want AutoCAD to say.
This is an example of AutoCAD using text to speech.
If you wanted to load it with each session of AutoCAD you start you would likely want to either place this code into your acad.mnl file or your acad.lsp, or your acaddoc.lsp file.

(autoload "sayit" '("sayit"))

Notsober

  • Guest
Re: Do you want autocad speak ?
« Reply #96 on: October 17, 2008, 03:11:11 PM »
Download this lsp file.
Place a copy of it in your AutoCAD support folder.
(example for AutoCAD MEP 2008)
C:\Documents and Settings\YourUserName\Application Data\Autodesk\ACD-MEP 2008\enu\Support

Open Your AutoCAD, type appload into the command line.
In the dialog box, browse to the folder you copied it to and select sayit.lsp
Click the load button, close the dialog box.
type:
sayit
into the command line.
type what you want AutoCAD to say.
This is an example of AutoCAD using text to speech.
If you wanted to load it with each session of AutoCAD you start you would likely want to either place this code into your acad.mnl file or your acad.lsp, or your acaddoc.lsp file.

(autoload "sayit" '("sayit"))

cool cool. well see, I didn't know it was a lisp routine. I thought it was some sort of VBA code (which is where my weakness is - I guess I still can't recognize the difference between lisp routines and other code languages).

YAY I know what to do with lisps... lol. And why would I have to add the code into my acad.mnl or acad.lsp or acaddoc.lsp? isn't it easier to just add the sayit.lsp to the StartUp Suite?

KewlToyZ

  • Guest
Re: Do you want autocad speak ?
« Reply #97 on: October 20, 2008, 09:21:22 AM »
Depends on what sort of deployment you have in place.
I have a bunch of customizations on a network drive and a profile loading it up afor all of my users.
For the most part using start up suite is not good practice in an enterprise environment.  :kewl:

HofCAD

  • Guest
Re: Do you want autocad speak ?
« Reply #98 on: October 21, 2008, 01:07:36 PM »
May want to look to see what voices are available first:

;; Check for available voices in registry
(vl-registry-descendents  "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\Voices\\Tokens\\")

<This is why I couldn't change the voice - I only had one voice installed /slaps forehead)

Code: [Select]
(defun C:VoiceList(/ i VoiceLst)
(setq  Sapi (vlax-create-object "Sapi.SpVoice"))
(setq Voices (vlax-invoke Sapi 'GetVoices))
(setq i 0 VoiceLst '())
(repeat (vla-get-count Voices)
(setq VoiceLst (append VoiceLst
(list (vlax-invoke (vla-item Voices i) 'GetDescription))))
(setq i (1+ i))
)
;(vlax-release-object Sapi)
VoiceLst
)
VoiceList or (C:VoiceList) gives to me:
("Microsoft Mary" "Microsoft Mike" "Microsoft Sam" "Sample TTS Voice")


For sound Animations or Simulations of
five Maltese cross or Geneva mechanism (HofMalt.zip),
three Parallel mechanism(HofPar.zip),
Pulley, Valve, Bench Vice and a Hammer(HofAni1.zip) and for
exploded views of an U-bolt pipe strap and Shaft clamp(HofAni2.zip)
see:
http://forums.augi.com/showthread.php?t=55713&page=4&highlight=animation

Regards,
HofCAD CSI

PS I made some modifications and additions in SpeakCfg.lsp.
For example, adding Wav sound, voice identification and warnings.

The program SpeakCfg is Using the Speech Application Programming Interface
from Microsoft Speech SDK 5.1 (http://www.microsoft.com/downloads/") or the
speech module from Microsoft Office (Microsoft Word 2002, or Microsoft Excel 2002).
« Last Edit: October 15, 2009, 01:24:41 PM by HofCAD »

deegeecees

  • Guest
Re: Do you want autocad speak ?
« Reply #99 on: March 24, 2011, 10:44:38 AM »
*bump*

April Fools Day is right around the corner.

Matt__W

  • Seagull
  • Posts: 12951
  • I like my water diluted.
Re: Do you want autocad speak ?
« Reply #100 on: March 24, 2011, 01:15:46 PM »
*bump*

April Fools Day is right around the corner.
That's my birthday!  :)
Autodesk Expert Elite
Autodesk Revit Architecture, Structure, MEP Mechanical and MEP Electrical Certified Professional
Building Performance Analysis Certified (BPAC v3.0)
Autodesk Navisworks 2014 Essentials

Nibster

  • Water Moccasin
  • Posts: 1825
  • Autocabbid
Re: Do you want autocad speak ?
« Reply #101 on: March 24, 2011, 02:14:24 PM »
*bump*

April Fools Day is right around the corner.
That's my birthday!  :)
your mom failed to keep legs crossed till after midnight, huh?

 :lmao:

mine succeeded.  8-)
A2016 w/ 3D navigator

"Nobody ever knows who I am." ~anonymous

Matt__W

  • Seagull
  • Posts: 12951
  • I like my water diluted.
Re: Do you want autocad speak ?
« Reply #102 on: March 24, 2011, 02:18:20 PM »
*bump*

April Fools Day is right around the corner.
That's my birthday!  :)
your mom failed to keep legs crossed till after midnight, huh?

 :lmao:

mine succeeded.  8-)
That's the ONLY time your mom kept her legs crossed.  *ZING!!*
Autodesk Expert Elite
Autodesk Revit Architecture, Structure, MEP Mechanical and MEP Electrical Certified Professional
Building Performance Analysis Certified (BPAC v3.0)
Autodesk Navisworks 2014 Essentials

alanjt

  • Needs a day job
  • Posts: 5324
  • Standby for witty remark...
Re: Do you want autocad speak ?
« Reply #103 on: March 24, 2011, 04:34:39 PM »
Totally off topic, but are those your feet/shoes, Matt? I've seen those shoes but don't know anyone with them. Do you like them?
Civil 3D 2017 ~ Windohz 7 64bit
Dropbox

Matt__W

  • Seagull
  • Posts: 12951
  • I like my water diluted.
Re: Do you want autocad speak ?
« Reply #104 on: March 25, 2011, 08:09:20 AM »
Totally off topic, but are those your feet/shoes, Matt? I've seen those shoes but don't know anyone with them. Do you like them?
Yes, those are my feet/shoes.  I have two pairs and I love 'em.  Those are the Vibram KSOs.  I do about 25% of my running in them - roads, dreadmill, or in this case muddy trails.  :love:

I'm easing back into them after this past winter when I didn't use them at all - I've got start building up the calluses on my feet again.
Autodesk Expert Elite
Autodesk Revit Architecture, Structure, MEP Mechanical and MEP Electrical Certified Professional
Building Performance Analysis Certified (BPAC v3.0)
Autodesk Navisworks 2014 Essentials