My trip down speech recognition lane started with discovery of the free Camera Mouse program (cameramouse.org). I started using the Camera Mouse to control the mouse pointer, but you could not click, at least not easily. I experimented with various ways of accomplishing a click, and settled on using Windows 7 Speech Recognition and speech macros you can install. (This PDF and other downloads at: http://cameramouse.org/downloads.html.)
After several weeks I began to try different ways of improving how the macros work. Here is an update to the mouse click macros available from cameramouse.org. If you want to jump right into them, scroll to the bottom of this post.
Keywords Used
Because Windows Speech Recognition is trying its best to understand everything you say as a command, it was tough to find a unique word that means "click". This is because, if you use "click" as your word to listen for, Windows Speech Recognition will often confuse it with other commands of its own. In the end I chose "iclick" because it was different enough, but even then it wasn't 100% foolproof, and sometimes Windows thought I said "iright" instead of "iclick".
I've been a devourer of the MSDN speech documentation (http://code.msdn.microsoft.com/wsrmacros/) and Rob's Rhapsody (http://code.msdn.microsoft.com/wsrmacros/). I soon discovered a seemingly undocumented speech macro feature called "priority" which seems to tell Speech Recognition to make your macros more important than what Windows wants to do.
Because of the priority attribute, I'm able to use the words "click", "right-click" and "double-click" in my macros and they work almost flawlessly. Example left click:
<listenFor>?mouse click</listenFor> <mouse button="left" command="click" />
</command>
What's the question mark for?
You'll notice that the "listenFor" definition has "?mouse click". The question mark indicates that the word is optional. This is because when I'm "talking" to my computer, I sometimes say "mouse click" and sometimes just "click". You might want to adjust the "listenFor" to your own habits. For example, if you say "left-click" often, you could write:
<listenFor>?left click</listenFor>
What else is new?
I added a triple-click command. This was accomplished by clicking three times with a slight delay between each click.
I also added a Ctrl-Click command, which means you can open multiple windows in a browser (for example) without touching the keyboard. This is done by adding a modifier attribute to the mouse statement:
<mouse button="left" command="click" modifierKeys="^" />
My current mouse macros
Note: Be sure to replace "[YOURPATHTOAUTOHOTKEYMACROS]" with your path to the two autohotkey speech macros, which are separate macros used to perform the hold down and release mouse button actions.
<command priority="100"> <listenFor>?mouse click</listenFor> <mouse button="left" command="click" />
</command>
<command priority="100"> <listenFor>?mouse control-click</listenFor> <mouse button="left" command="click" modifierKeys="^" />
</command>
<command priority="100"> <listenFor>?mouse double-click</listenFor> <mouse button="left" command="dblclick" />
</command>
<command priority="100"> <listenFor>?mouse triple-click</listenFor> <mouse button="left" command="click" /> <waitFor seconds="0.05" /> <mouse button="left" command="click" /> <waitFor seconds="0.05" /> <mouse button="left" command="click" />
</command>
<command priority="100"> <listenFor>?mouse context ?menu</listenFor> <listenFor>?mouse right-click</listenFor> <mouse button="right" command="click" />
</command>
<command priority="100"> <listenFor>?mouse hold</listenFor> <run command="[YOURPATHTOAUTOHOTKEYMACROS]\mousedown.ahk" params=""/>
</command>
<command priority="100"> <listenFor>?mouse release</listenFor> <run command="[YOURPATHTOAUTOHOTKEYMACROS]\mouseup.ahk" params=""/>
</command>
As always feel free to send me questions.
Here's a great book on using WSR Macros:
ReplyDeletehttp://www.emicrophones.com/p-1231-wsrmacros-the-users-guide.aspx
This is a "must have" for anyone writing WSR Macros.
-Russ
Hi,
ReplyDeleteI'd like to make a Smart Agent using WSRM with a Microphone Array.
But, because Windows is trying to recognise every sounds in the rooms it becomes mad.
Is there a way to make it recognise ONLY our macros ?
- The priority tips is great but not enough for me.
- On the forum some people says to define macro that will override all windows commands but it seems "painfull" to do this.
Regards,
Jp
Thanks for the information. I've been struggling with RSI after years of programming and have been experimenting with similar tools. Camera Mouse was a great suggestion. I tried it a bit and it's really help to cut down on my keyboard use. I've also been trying out "Enable Viacam" works similar and is a bit smoother, but lacks shortcut keys, which might be a show-stopper for me. At any rate, thanks for introducing me to headtracking software!
ReplyDeletewhat programming language is this?
ReplyDeleteand the link MSDN windows codes for wsr isnt working:(
You can now download Windows Speech Recognition Macros from here:
ReplyDeletehttp://www.microsoft.com/en-us/download/details.aspx?id=13045
The link for the great book on WSR Macros also changed. It is now available here:
http://www.mymsspeech.com/p/51/wsrmacros-the-users-guide
chenlili20160630
ReplyDeletenike free run 2
gucci outlet
hollister jeans
michael kors outlet clearance
retro jordans 13
fitflop sandals
coach factory outlet
louis vuitton outlet online
coach outlet store online clearances
coach factory outlet
lebron shoes for kids
louis vuitton handbags
jordan 3 retro
pandora charms
gucci belts
kate spade handbags
ralph lauren outlet
cheap air jordans
michael kors outlet
asics outlet
longchamp handbags
christian louboutin sale
louis vuitton purses
ray ban sunglasses
coach outlet
gucci outlet
ray ban sunglasses
jordan retro 11
polo ralph lauren
lebron 13
ray ban sunglasses outlet
ralph lauren
coach outlet
polo outlet
louis vuitton outlet
michael kors handbags
fitflops shoes
ralph lauren polo
ray ban sunglasses
abercrombie & fitch new york
Kristaps Porzingis Jerseys
ReplyDeleteAnthony Davis Jerseys
Golden State Warriors Jerseys
Chicago Bulls Jerseys
New York Knicks Jerseys
Los Angeles Lakers Jerseys
San Antonio Spurs Jerseys
Oklahoma City Thunder Jerseys
Boston Celtics Jerseys
L.A. Clippers Jerseys
Moncler Women
This comment has been removed by the author.
ReplyDelete
ReplyDeleteGood write-up. I definitely love this site. Keep it up
https://prokr111.wikia.com/wiki/User_blog:Msrobagad
http://proker.ucoz.ae/blog/
http://prokr123.zohosites.com/
http://brodcastk.info/
https://www.prokr.net/ksa/jeddah-water-leaks-detection-isolate-companies
Reading Buddy Software is advanced, speech recognition reading software that listens, responds, and teaches as your child reads. It’s like having a tutor in your computer
ReplyDeleteReading Buddy Software is advanced, speech recognition reading software that listens, responds, and teaches as your child reads. It’s like having a tutor in your computer
ReplyDeleteReading Buddy Software is advanced, speech recognition reading software that listens, responds, and teaches as your child reads. It’s like having a tutor in your computer
ReplyDeleteReading Buddy Software is advanced, speech recognition reading software that listens, responds, and teaches as your child reads. It’s like having a tutor in your computer
ReplyDeleteReading Buddy Software is advanced, speech recognition reading software that listens, responds, and teaches as your child reads. It’s like having a tutor in your computer
ReplyDeleteReading Buddy Software is advanced, speech recognition reading software that listens, responds, and teaches as your child reads. It’s like having a tutor in your computer
ReplyDeletereplica bags us replica gucci bags i3n79f3w42 best replica ysl bags visit the site c4g04z8o48 bags replica gucci replica bags zeal replica bags reviews click here to read o8u57z0p86 replica bags in gaffar market
ReplyDeleteq4c92x4o41 v7o10l5c26 p4w98c4k99 p1w09b1b76 x8r23y1p69 k0j98t6w87
ReplyDelete