Author Topic: Windows Speech to Text (STT) via AutoLisp / Visual Lisp?  (Read 2616 times)

0 Members and 1 Guest are viewing this topic.

BIGAL

  • Swamp Rat
  • Posts: 1474
  • 40 + years of using Autocad
Re: Windows Speech to Text (STT) via AutoLisp / Visual Lisp?
« Reply #15 on: November 09, 2023, 08:48:32 PM »
Years ago I did talk to Autocad I am sure just used the inbuilt voice input inside windows. !@#$ was undo. Stuff like "Line" worked. It was actually slow. given the advances in speech recognition should be better now. May have a another play.

yep worked
Enter Command spoke Line
Start of Line

Make sure TV is off etc got some weird stuff happening.



Slow to use and stops, I used previously speech to text and could teach it commands like !@#$ means something, I think I used stop for enter.
« Last Edit: November 09, 2023, 09:00:19 PM by BIGAL »
A man who never made a mistake never made anything

CodeDing

  • Newt
  • Posts: 63
Re: Windows Speech to Text (STT) via AutoLisp / Visual Lisp?
« Reply #16 on: November 09, 2023, 09:10:01 PM »
BigAl,

Yes, I know the Windows Dictation can run in the foreground. The problem is that it runs continuously, and I would rather manage the text string myself. So that's why I want the API.

When I look at the VB sample here:
https://learn.microsoft.com/en-us/previous-versions/windows/desktop/ms720590(v=vs.85)

...it appears to utilize an EventHandler to manage when the Recognizer is finished. We can see this is accomplished via the "RC_Recognition" function:
Code: [Select]
Private Sub RC_Recognition( ...
Does anybody know how I can manage COM events in Visual Lisp? Yes, I know about "vlr-" methods, but not sure how I could apply them in this instance to my Recognizer?
Any examples of Visual Lisp COM event handling?

Best,
~DD
Senior CAD Tech & AI Specialist
Need AutoLisp help?
Try my custom GPT 'AutoLISP Ace'