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

0 Members and 3 Guests are viewing this topic.

Tramber

  • Guest
Re: Do you want autocad speak ?
« Reply #15 on: January 17, 2007, 03:11:13 PM »
Matt W !

I'm disappointed because if I type in X=0 and Y=123, he doesn't go to the GCS at the appropriate coordinates  :wink:

Guest

  • Guest
Re: Do you want autocad speak ?
« Reply #16 on: January 17, 2007, 03:12:48 PM »
GCS?  :?  The Glasgow Coma Score??!

JohnK

  • Administrator
  • Seagull
  • Posts: 10595
Re: Do you want autocad speak ?
« Reply #17 on: January 17, 2007, 04:14:56 PM »
Im still playing around with the speaking part... *lol*

there's an easter egg in there (that's why its compiled.) *lol*
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

daron

  • Guest
Re: Do you want autocad speak ?
« Reply #18 on: January 17, 2007, 05:01:50 PM »
For those that are playing with this utility. If you have trouble understanding the voice, add commas. The voice recognizes commas and will pause. It does help to clarify words. This is pretty cool by the way. I'm setting up a function that will tell me a selected object name and layer.

Birdy

  • Guest
Re: Do you want autocad speak ?
« Reply #19 on: January 17, 2007, 05:11:49 PM »
wow.
I'm gonna have some fun tomorrow.
 :evil:

Tramber

  • Guest
Re: Do you want autocad speak ?
« Reply #20 on: January 18, 2007, 02:45:04 AM »
GCS?  :?  The Glasgow Coma Score??!

Global Coordinates System ? How do you spell it ? In my country, it is named SCG.

Well I was just saying that it would have been funny to see Merlin going to the real Acad ModelSpace coordinates  ;-)

Patrick_35

  • Guest
Re: Do you want autocad speak ?
« Reply #21 on: January 18, 2007, 03:40:06 AM »
If you have a colleague whom you do not love too much  ^-^

Code: [Select]
(defun autocad_qui_parle (texte / sapi)
  (setq sapi (vlax-create-object "Sapi.SpVoice"))
  (vlax-invoke sapi "Speak" texte 0)
  (vlax-release-object sapi)
)

(defun autocad_qui_parle_debut (rea cde)
  (autocad_qui_parle (strcat "Your command ," (car cde) " will start"))
)

(defun autocad_qui_parle_inconnu (rea cde)
  (autocad_qui_parle (strcat "unknown command ," (car cde)))
)

(defun autocad_qui_parle_cancel (rea cde)
  (autocad_qui_parle (strcat "The command ," (car cde) " as cancelled"))
)

(defun autocad_qui_parle_failed (rea cde)
  (autocad_qui_parle (strcat "The command ," (car cde) " as failed"))
)

(defun autocad_qui_parle_fin (rea cde)
  (autocad_qui_parle (strcat "The command ," (car cde) " as ended"))
)

(if (not pourrir_la_vie)
  (setq pourrir_la_vie (vlr-command-reactor nil (list (cons :vlr-commandWillStart (function autocad_qui_parle_debut))
        (cons :vlr-unknownCommand   (function autocad_qui_parle_inconnu))
        (cons :vlr-commandCancelled (function autocad_qui_parle_cancel))
        (cons :vlr-commandFailed    (function autocad_qui_parle_failed))
        (cons :vlr-commandEnded     (function autocad_qui_parle_fin))
)
         )
  )
)
(princ)

@+

Maverick®

  • Seagull
  • Posts: 14778
Re: Do you want autocad speak ?
« Reply #22 on: January 18, 2007, 09:25:16 AM »
Add a delay between the sayings, and then add the works
"Deleting all objects one layer x unless you yell stop"
Then after the wait say.
"Didn't hear you, proceeding with deletion."

 :lmao: :lmao: :evil:

I wish I used Autocad now

terrycadd

  • Guest
Do you want autocad to speak?
« Reply #23 on: January 18, 2007, 10:26:54 AM »
We've created a monster! Everyone in the office is running this one, and it's driving the boss crazy.
Code: [Select]
(defun c:SayIt (/ Phrase$ Sapi)
  (if (setq Phrase$ (getstring "\nEnter phrase: " t))
    (progn
      (setq Sapi (vlax-create-object "Sapi.SpVoice"))
      (vlax-invoke Sapi "Speak" Phrase$ 0)
      (vlax-release-object Sapi)
    );progn
  );if
  (princ)
);defun c:SayIt
« Last Edit: January 18, 2007, 11:30:05 PM by Terry Cadd »

Lin-Z

  • Guest
Re: Do you want autocad speak ?
« Reply #24 on: January 18, 2007, 10:41:38 AM »
If you have a colleague whom you do not love too much  ^-^


Ummmm.. is it supposed to actually say  the comma?  "Your command comma line has started..."  Yes I'm smart enough to remove the commas, but I thought it was a pause.  Is my computer possessed again?  :evil:

Patrick_35

  • Guest
Re: Do you want autocad speak ?
« Reply #25 on: January 18, 2007, 10:59:26 AM »
Yes, the comma is a small pause

My colleague will need his gri-gri  :evil:

@+

Lin-Z

  • Guest
Re: Do you want autocad speak ?
« Reply #26 on: January 18, 2007, 11:11:13 AM »
My comma says 'comma' .  In fact is says all the symbols including tilde.   :? 

CottageCGirl

  • Guest
Re: Do you want autocad speak ?
« Reply #27 on: January 18, 2007, 02:53:55 PM »

daron

  • Guest
Re: Do you want autocad speak ?
« Reply #28 on: January 18, 2007, 03:05:24 PM »
You're not supposed to spell comma, just put one in.  :-D

Lin-Z

  • Guest
Re: Do you want autocad speak ?
« Reply #29 on: January 18, 2007, 03:31:12 PM »
You're not supposed to spell comma, just put one in.  :-D

Now see a-huyre!   :pissed:  I mean, let me clarify  :angel: :  "Your command , line..."  Actually says "Your command comma line..."  I guess I should point out I'm running it in Map 3D 07 if that makes a difference