Vica Posted 19 hours ago Posted 19 hours ago Hello everyone I'd like to know if it's possible to execute AutoCAD commands using voice recognition. Is this possible using Lisp? Thanks in advance Quote
Danielm103 Posted 16 hours ago Posted 16 hours ago Look at SAPI (Microsoft Speech Application Programming Interface) https://learn.microsoft.com/en-us/previous-versions/windows/desktop/ms720151(v=vs.85) I goofed with Python’s SpeechRecognition library, but I didn’t want to spend the time to sign up for a proper service, i.e. Google’s API, the results were pretty bad. Best approach would be to use a language with support for multi-threading, that way you could have a background thread listing for commands Quote
rlx Posted 16 hours ago Posted 16 hours ago just google voicecontrol autocad and you get things like voice2cad Quote
Steven P Posted 3 hours ago Posted 3 hours ago (edited) Got this from CadTutor forums ages ago but lost the link. RLX, was this one of your ideas? Not voice control but spoken feedback, I guess the other half of voice control. 3 Lisps "SpeakSapi", s is the text string to say "SayThis", type in the string and it says it "FreshPrints" cause in work they asked me to do fresh prints.... (Again, RLX, this should appeal to your mind) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defun SpeakSapi ( s / sapi ) (if (eq (type s) 'STR) (progn (setq sapi (vlax-create-object "Sapi.SpVoice")) (vlax-put sapi 'SynchronousSpeakTimeout 1) (vlax-invoke-method sapi 'WaitUntilDone 0) (vlax-invoke sapi "Speak" s 0) (vlax-release-object sapi) ) ) ) (defun c:saythis( / s) (setq s (getstring T "What should I say? ")) (speaksapi s ) ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defun c:freshprints () (speaksapi "Now this is the story all about how My life got flipped, turned upside down And I'd like to take a minute, just sit right there I'll tell you how I became the prince of a town called Bel-Air In West Philadelphia born and raised Blah blah blah blah blah I pulled up to a house about seven or eight And I yelled to the cabby yo, holmes smell you later Looked at my kingdom, I was finally there To sit on my throne as the Prince of Bel-Air") ;;(speaksapi "Now this is the story all about how ;;My life got flipped, turned upside down ;;And I'd like to take a minute, just sit right there ;;I'll tell you how I became the prince of a town called Bel-Air ;;In West Philadelphia born and raised ;;On the playground is where I spent most of my days ;;Chilling out, maxing, relaxing all cool ;;And all shooting some b-ball outside of the school ;;When a couple of guys, who we're up to no good ;;Started making trouble in my neighbourhood ;;I got in one little fight and my mom got scared ;;And said, you're moving with your aunty and uncle in Bel-Air ;;I begged and pleaded with her day after day ;;But she packed my suitcase and sent me on my way ;;She gave me a kiss and then she gave me my ticket ;;I put my walkman on and said, I might as well kick it ;;First class, yo this is bad ;;Drinking orange juice out of a champagne glass ;;Is this what the people of Bel-Air are livin' like? ;;Hmm, this might be alright ;;I whistled for a cab and when it came near ;;The license plate said fresh, and had a dice in the mirror ;;If anything I could say that this cab was rare ;;But I thought, nah, forget it, yo holmes to Bel-Air ;;I pulled up to a house about seven or eight ;;And I yelled to the cabby yo, holmes smell you later ;;Looked at my kingdom, I was finally there ;;To sit on my throne as the Prince of Bel-Air") ) Edit: A lie.. not RLX, BigAl https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fun-time-with-speak-function/td-p/5546596 Edited 3 hours ago by Steven P Quote
rlx Posted 3 hours ago Posted 3 hours ago could you type or speak a little louder because I can't hear you Steven 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.