Two Plus Two Publishing LLC Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > Internet Poker > Software

Notices

Software Discussions about gambling-related and poker software.

Reply
 
Thread Tools Display Modes
Old 12-01-2009, 07:44 PM   #76
banned
 
Join Date: Jun 2009
Posts: 31
Re: Voice Controlled Poker

Quote:
Originally Posted by atari2600 View Post
Hey guys, I wrote a blog and made a video of setting up voice control for online poker. There are some other ways to do it out there, but this way is free, I like that price.

I give links to the software I use and details of how I set it up. You'll note that the software is only free as a 30 day trial, but if you really don't want to pay you can just uninstall/re-install the software to get another 30 days. It will save your commands so you don't have to re-configure.


http://www.pokerlistings.com/blog/vo...ntrolled-poker

If you have any Q's, drop them here, or in the comments box. I'll get back to you.


THANK YOU 10000000xxxxxxx
ploqueen is offline   Reply With Quote
Old 12-23-2009, 11:13 AM   #77
grinder
 
CajunDragon's Avatar
 
Join Date: Jul 2009
Location: @CajunDragon (Las Vegas)
Posts: 504
Re: Voice control with AHK scripts?

Damn. I had a dream that I did this and so woke up and did a search and you guys are already utilizing this technique. good job. I've had Dragon Naturally Speaking for awhile but rarely use it.

Quote:
Originally Posted by xPeru View Post
OMFG I've got this to work. I can now 8 table and use voice to click the fold, call and raise buttons on Stars. That's gotta be 80% less clicks.
CajunDragon is offline   Reply With Quote
Old 01-14-2011, 11:36 PM   #78
veteran
 
Nicotine Dreams's Avatar
 
Join Date: Jul 2007
Location: up before the sun rises.
Posts: 2,197
Re: Voice control with AHK scripts?

bump

Any progress?
Nicotine Dreams is offline   Reply With Quote
Old 01-15-2011, 12:00 AM   #79
Pooh-Bah
 
aura's Avatar
 
Join Date: Aug 2005
Location: Emanating
Posts: 4,774
Re: Voice control with AHK scripts?

I explained how I did it earlier in this thread.
aura is offline   Reply With Quote
Old 01-15-2011, 12:33 AM   #80
veteran
 
Nicotine Dreams's Avatar
 
Join Date: Jul 2007
Location: up before the sun rises.
Posts: 2,197
Re: Voice control with AHK scripts?

Thank you for your reply, aura.


How far away are we from being able to input/train voice recognition for exact numbers eg. two-four-oh-eight-point-three-six?

I think what you have so far is great for LHE, but having to always have a numeric keypad at hand is restrictive to the dream.

In the near future I would like to continue to input these things with my laptop/desktop by hand: login/pass information; scroll through the lobby and table select around 1-12 tables.

I would then use your software w/ the headset using voice command to: alt+tab/scroll through tables 1-12; sitout/post blinds/unpost blinds/close table; bet specific amount/fold/call. Leaving for the day as I'm on PST, but await yours and others thoughts.


p.s. I thought the addition of voice confirmation where the program replies with 'k' to indicate a successful recognition was a nice touch.
Nicotine Dreams is offline   Reply With Quote
Old 01-15-2011, 11:48 AM   #81
Pooh-Bah
 
aura's Avatar
 
Join Date: Aug 2005
Location: Emanating
Posts: 4,774
Re: Voice control with AHK scripts?

I tested it out again last night and it worked beautifully.

Try it out!

Use windows speech recognition (comes with vista & 7) and download windows speech recognition macros. They're both free. Then download tableninja & tableninjaFT (tn is for pstars & tnft is obv for ftp). They both have full-featured free trials so you can test them out. You'll need them to do most of the clicking for you.

So, let's say you're gonna play on FTP with your voice.

You log in and sit down on tables with your mouse/keyboard. obv tnft is set up and running. my session last night went rather well. In the hour or so that I played, I clicked my mouse a total of maybe 5 times (because of some pot bet error in tnft... no prob because it just didn't click anything, so I clicked "pot" with the mouse- might have been my tnft config). If not for that error, I would have made zero clicks with my mouse and zero usage of the keyboard!

The only thing that you ask that I haven't figured out (because I don't find it necessary) is the exact bet amount.

I can increase/decrease the bet amount by sb or bb, bet pot, and go all in.

So if I want to bet 2/3 pot, I say "pot bet now" and then repeat "less chips" until I get where I wanna be... then I say "bet it"

Typical usage multitabling:

"cycle"-cycles the tables
"fold"-obv folds
"pot bet now" then "bet it"- bets the pot
"check"- check obv
"cycle"

"pot bet now" then "less chips" (times x) then"bet it"- bets some amount less than the pot

"cycle"
"just fold"-clicks the prefold button
"pot bet now" then "bet it"- betting pot
"fold"
"check"
.............. and so on.


No misclicks! Zero!

As long as you make the commands different enough, then you should have no problem with misclicks. The computer will not "accidentally" click anything.

So I made betting pot and all in three syllable commands. "pot bet now" and "all in now"... you do have the option to make it so those two commands put the bet size in and click the bet button, but I chose the safer route. I have to say "bet it" after the bet amount is put in.

Thanks for reminding me of this! I'm gonna use my voice to play again. I did it for a bit and then bought a new computer and never got around to setting it up again.

If you need any help setting any of this up, please feel free to ask. Any other questions or comments are obv welcome.

cliffs: You can do it, and it works very well.

Last edited by aura; 01-15-2011 at 11:57 AM.
aura is offline   Reply With Quote
Old 01-15-2011, 12:19 PM   #82
Pooh-Bah
 
aura's Avatar
 
Join Date: Aug 2005
Location: Emanating
Posts: 4,774
Re: Voice control with AHK scripts?

Ah..... missed the edit time.

Just remembered! There is an ahk script that you can use to click the mouse anywhere on the screen...... sooooo

you could set it up so that it clicks in the bet box. Then you could say the bet!

This would allow you to bet any exact amount. Gonna try it later.
aura is offline   Reply With Quote
Old 01-15-2011, 02:33 PM   #83
Carpal \'Tunnel
 
jukofyork's Avatar
 
Join Date: Sep 2004
Posts: 10,212
Re: Voice control with AHK scripts?

Quote:
Originally Posted by aura View Post
I tested it out again last night and it worked beautifully.
The problem I've had in the past whenever I've tried to use voice recognition for poker is that it works beautifully 99.99% of the time, but that 0.01% when you go and donk off a whole stack because you were sipping a cup of coffee whilst talking, etc is so painful it puts me right off I really like the idea though, but just can't seem to get away from these painful disasters...

How many hands have you played with this and have you had any bad accidents from it?

Juk
jukofyork is offline   Reply With Quote
Old 01-15-2011, 04:32 PM   #84
Pooh-Bah
 
aura's Avatar
 
Join Date: Aug 2005
Location: Emanating
Posts: 4,774
Re: Voice control with AHK scripts?

Juk, I honestly think misclicks will occur less often than with a mouse. This is assuming you're not doing a bunch of extraneous talking.

Obv if you're trying to play poker with your voice, then doing a buncha random talking would not be good.

That being said, it would be realllllly hard to stack off accidentally even if you were just talking to someone in the room.

The easiest way to completely avoid this is to simply pause windows speech recognition if you know you're gonna do some talking.

The cool thing is, your Tableninja hotkeys will still work, so you can just play as you did before.

As a matter of fact, since the hotkeys are the same, you can use any combo of keyboard shortcuts and voice commands.

Worried about accidentally voicing an all in command? Then don't have one available. Make it so you have to use your keyboard.


I played a whole buncha sessions over the summer without a hitch. idk, I'd say over ten thousand hands, for sure. Not one problem at all.

It might sound kinda weird, but I wanted to be able to stretch and work out while playing poker. obv being able to completely lounge is cool, too.


btw, I was looking for an ahk script that would click the bet box for me, and I found your post here.

I do have a simple AHK script set up to click in the right spots for the bet boxes, but I'm using x,y coordinates (based on screen resolution). If I ever move my tables, I have to change the coordinates in the script. Not a huge deal, but I am sure there's an easier way... like relative positions in the window. Do you have any advice here?
aura is offline   Reply With Quote
Old 01-15-2011, 05:30 PM   #85
veteran
 
Nicotine Dreams's Avatar
 
Join Date: Jul 2007
Location: up before the sun rises.
Posts: 2,197
Re: Voice control with AHK scripts?

Quote:
Originally Posted by aura
but I wanted to be able to stretch and work out while playing poker.
Exactly this.

For me, being able to stand and pace at any given moment, basically not be restricted to sitting at my desktop/laptop during a 6 hour session all while being able to input commands makes this type of software invaluable. So, my appreciation for our current updates and a thank you in advance for any future progress you decide to post.

In response to not needing to input exact dollar amounts specific up to cents ($XX.XX), I have to respectfully disagree! Secret Pro Tip: 1996.89 is infinitely more tilting than a nice, round 2000. In addition to being aesthetically displeasing, you force opponents to round more often and be at the mercy of advanced addition and multiplication...

Quote:
Originally Posted by aura
I do have a simple AHK script set up to click in the right spots for the bet boxes, but I'm using x,y coordinates (based on screen resolution). If I ever move my tables, I have to change the coordinates in the script. Not a huge deal, but I am sure there's an easier way... like relative positions in the window. Do you have any advice here?
+1
Nicotine Dreams is offline   Reply With Quote
Old 01-15-2011, 05:34 PM   #86
Carpal \'Tunnel
 
jukofyork's Avatar
 
Join Date: Sep 2004
Posts: 10,212
Re: Voice control with AHK scripts?

Quote:
Originally Posted by aura View Post
btw, I was looking for an ahk script that would click the bet box for me, and I found your post here.

I do have a simple AHK script set up to click in the right spots for the bet boxes, but I'm using x,y coordinates (based on screen resolution). If I ever move my tables, I have to change the coordinates in the script. Not a huge deal, but I am sure there's an easier way... like relative positions in the window. Do you have any advice here?
Really to just use the message posting method (because then you can use your mouse for other stuff...) and remember that it works based off the "client area" of the window (so you may need to manually account for borders and title-bars).

The best advice I could give you is just to look through other scripts that do something similar to what you want and see how they did it - that's where I've learnt the most helpful AHK stuff.

Juk
jukofyork is offline   Reply With Quote
Old 01-15-2011, 09:43 PM   #87
Pooh-Bah
 
aura's Avatar
 
Join Date: Aug 2005
Location: Emanating
Posts: 4,774
Re: Voice control with AHK scripts?

-sigh-

That was not easy.

I'm such a noob.

So I finally have a script that clicks the bet box! Yeehaw!

All you have to do if you want to bet exact amounts is say (or type) the command to get the cursor in the box and type (or say) the amount.

Gonna test it later..... just got done working out the bet box thing. I chose not to use postmessage because..... well, I can't figure it out right now.

This should work very well, though.

note: If you multitable (and I know you do), then your tables need to be the same size. You can definitely write a script that can have diff table sizes, but I haven't figured it out at the moment.

Hopefully that's not too much of a bummer.

Here's the script.

Code:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory. 

^!c::

SetTitleMatchMode 2


SetControlDelay -1


ControlClick, x1347 y872, Limit
I know I'm a total noob and you might laugh at how lame the script is, but it works.

Any help to make it better is appreciated.
aura is offline   Reply With Quote
Old 01-16-2011, 12:49 AM   #88
Pooh-Bah
 
aura's Avatar
 
Join Date: Aug 2005
Location: Emanating
Posts: 4,774
Re: Voice control with AHK scripts?

Update - I just played a session.

Everything works perfectly!

To put in an exact bet, I simply say "input bet" and then "highlight" to highlight the text (ctrl+a obv) and then "type xxxx point xx" The point is the decimal.

Didn't have to make a macro for the typing... it's built into wsr.

I won't input exact bets all the time, but it's quite easy if I ever want to. I'll do it more now than before, for sure.

So everything works as it should... cycling through windows, placing bets, clicking prefold... it all works well.


I just thought of something as I was playing... adding notes with my voice!

If I can click in the bet box, then I can right click on players and push the down arrow twice and enter and then the "player notes" box pops up. Not sure about color coding, but I'll check it out later. For sure the note taking can be done pretty easily.

Hope some of this helps!

I'll obv answer any questions & help if I can (I know very little about AHK scripts & wsr macros).
aura is offline   Reply With Quote
Old 01-17-2011, 10:32 AM   #89
centurion
 
Join Date: Feb 2007
Posts: 127
Re: Voice control with AHK scripts?

As Juk said, there are some misclicks sometimes and they can be costly... I wonder if that can be reduced by fine tuning the precision of the speech recognition engine via the control panel, it's very frustrating when opening a bag of chips is interpreted as "Push" and then I'm all-in with J2o at 10/20 blinds.

I use voice usually when I'm eating on the early stage of my set of 15 tables and it works really nice most of the time. My mouse is no longer dirty and I can relax while I eat and mostly fold everything at the first levels.

When action becomes faster and faster voice commands are no longer practical and I switch to the mouse.

I customized Dave's BetPot script for my specific setup (Stars and STT's) and added voice commands, works great.

This is the AHK code I use for voice recognition:

Code:
OnExit, CleanUp
#include com.ahk

COM_Init()
plistener:= COM_CreateObject("SAPI.SpSharedRecognizer")
COM_Invoke(plistener, "AudioInput", paudioin ? "+" . paudioin : "+0")
pcontext := COM_Invoke(plistener, "CreateRecoContext")
pgrammar := COM_Invoke(pcontext , "CreateGrammar")
COM_Invoke(pgrammar, "DictationSetState", 0)
prules := COM_Invoke(pgrammar, "Rules")
prulec := COM_Invoke(prules, "Add", "wordsRule", 0x1|0x20)
COM_Invoke(prulec, "Clear")
pstate := COM_Invoke(prulec, "InitialState")

; Add here the words to be recognized!

COM_Invoke(pstate, "AddWordTransition", "+" . 0, "Fold")
COM_Invoke(pstate, "AddWordTransition", "+" . 0, "Call")
COM_Invoke(pstate, "AddWordTransition", "+" . 0, "Bet")
COM_Invoke(pstate, "AddWordTransition", "+" . 0, "Back")
COM_Invoke(pstate, "AddWordTransition", "+" . 0, "Send")
COM_Invoke(pstate, "AddWordTransition", "+" . 0, "Cancel")
COM_Invoke(pstate, "AddWordTransition", "+" . 0, "Stop voice")
COM_Invoke(pstate, "AddWordTransition", "+" . 0, "Go")
COM_Invoke(pstate, "AddWordTransition", "+" . 0, "Less")
COM_Invoke(pstate, "AddWordTransition", "+" . 0, "Check")
COM_Invoke(pstate, "AddWordTransition", "+" . 0, "Pot")
COM_Invoke(pstate, "AddWordTransition", "+" . 0, "Half")
COM_Invoke(pstate, "AddWordTransition", "+" . 0, "Push")
COM_Invoke(pstate, "AddWordTransition", "+" . 0, "Tile")
COM_Invoke(pstate, "AddWordTransition", "+" . 0, "Stack")
COM_Invoke(pstate, "AddWordTransition", "+" . 0, "Start voice")

word := 0
StopSRT := 0

COM_Invoke(prules, "Commit")
COM_Invoke(pgrammar, "CmdSetRuleState", "wordsRule", 1)
COM_Invoke(prules, "Commit")
pevent := COM_ConnectObject(pcontext, "On")
DetectHiddenWindows, On
return

CleanUp:
ExitSRT()
ExitApp

ExitSRT()
{
COM_Release(pevent)
COM_Release(pstate)
COM_Release(prulec)
COM_Release(prules)
COM_Release(pgrammar)
COM_Release(pcontext)
COM_Release(plistener)
COM_Term()
}

OnRecognition(prms, this)
{
global word, StopSRT
presult := COM_DispGetParam(prms, 3, 9)
pphrase := COM_Invoke(presult, "PhraseInfo")
sText   := COM_Invoke(pphrase, "GetText")
COM_Release(pphrase)

if (sText = "Start voice" and StopSRT = 1)
	StopSRT := 0
else
if (StopSRT = 1)
	return
	
word++
tooltip %word% %sText%

if (sText = "Fold")
	PS_fold()
else if (sText = "Call")
	PS_call()	
else if (sText = "Check")
	PS_check()	
else if (sText = "Bet")
	WheelBetMore()
else if (sText = "Less")
  WheelBetLess()
else if (sText = "Send")
  SendWheelBet()
else if (sText = "Push")
  SendAllIn()
else if (sText = "Stop voice")
	StopSRT := 1
}

~^!q::
exitapp
return
greenstack is offline   Reply With Quote
Old 01-17-2011, 12:00 PM   #90
Carpal \'Tunnel
 
jukofyork's Avatar
 
Join Date: Sep 2004
Posts: 10,212
Re: Voice control with AHK scripts?

Quote:
Originally Posted by aura View Post
I just thought of something as I was playing... adding notes with my voice!
Yeah, that seems like a pretty good idea! I'm often too engaged in mouse moments to be bothered taking any notes and having the ability to do it via voice would be good.

Juk
jukofyork is offline   Reply With Quote

Reply
      

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -4. The time now is 10:12 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Copyright © 2008-2010, Two Plus Two Interactive