AutoHotkey Community

It is currently May 27th, 2012, 10:20 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 46 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: That's true
PostPosted: February 25th, 2008, 11:21 am 
Offline

Joined: October 13th, 2007, 10:18 am
Posts: 24
If you change your speech settings in the control panel, the speech changes.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 9th, 2008, 4:59 pm 
hi all,

how do you assign certain words to execute certain functions.

for example, but saying "yahoo", it will open up www.yahoo.com
and by saying "hotmail", it will open up www.hotmail.com

or any other commands, in that sense.

sorry i am new in this, and have been trying but have failed.

thanks in advance! :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 7th, 2008, 4:43 am 
Wrong place to ask. There's a forum for Asking For Help. Any guesses which one it is? Because I'll give you a hint, its not this one.


Report this post
Top
  
Reply with quote  
 Post subject: onrecognition
PostPosted: July 1st, 2008, 2:03 pm 
ahk newbie wrote:
hi all,

how do you assign certain words to execute certain functions.

for example, but saying "yahoo", it will open up www.yahoo.com
and by saying "hotmail", it will open up www.hotmail.com

or any other commands, in that sense.

sorry i am new in this, and have been trying but have failed.

thanks in advance! :)


Code:
OnRecognition(prms, this)
{
   Global   pspeaker
   presult := DispGetParam(prms, 3, 9)
   pphrase := Invoke(presult, "PhraseInfo")
   
   ; grab the text we just spoke
   txt := Invoke(pphrase, "GetText")
   ; check if it is a Label
   if(IsLabel(txt))
      gosub, %txt%
     
   Release(pphrase)
}

One:
Msgbox, One
Return

Two:
Msgbox, Two
Return

Three:
Msgbox, Three
Return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 9th, 2008, 2:30 am 
I don't know how picky you all want to get, but there is command/voice recognition software in sourceforge. You can easily set it up so that when you say something it launches an ahk script. As for a combination of voice commands...maybe you can set it up so that while one script is running, if another certain one is already up, it performs a different action...

I only mention that last part because I find ahk's best feature to be the fact that I can take two hotkeys, press both of them, and it performs a third action.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 1st, 2008, 10:58 am 
Offline

Joined: December 14th, 2005, 3:08 pm
Posts: 219
Anonymous wrote:
I don't know how picky you all want to get, but there is command/voice recognition software in sourceforge.


Care to tell us where?

I can only find Linux ones.

_________________
Stuart Halliday


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 8th, 2009, 5:01 pm 
Where do I install the SpeechSDK51.exe?
Or Doesn't it matter?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 8th, 2009, 5:35 pm 
With Vista the SpeechSDK51 is already included

With XP it's here http://www.microsoft.com/downloads/deta ... 83171b4530


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 8th, 2009, 5:37 pm 
It Doesn't matter. But i think you don't have the choice. It's a microsoft patch.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 12th, 2009, 12:45 pm 
Online

Joined: January 15th, 2007, 2:37 pm
Posts: 573
Just wanted to let you know this seems to be working great on my 64bit XP. Unless I'm missing something Microsoft's speech SDK doesn't integrate with x64 so some speech recognition programs I've tried don't work.

I've been trying to figure out if I can use phrases instead of single words. I have found some work such as ExitScript when they are typed as one word but others such as OpenNotepad trigger even when just saying notepad. Is there a way to use phrases?

Thank you for this great tool.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 27th, 2009, 3:04 am 
Sean wrote:
Looks like foom is busy.
Anyway, here is the verbatim translation of the script foom linked.
I can't test it myself as no mike is installed on my machine.
If you hear "Starting Succeeded", then, try to say one/two/three.

NEED CoHelper.ahk.

Code:
#Persistent
OnExit, CleanUp

CoInitialize()
pspeaker := ActiveXObject("SAPI.SpVoice")
plistener:= ActiveXObject("SAPI.SpSharedRecognizer")
pcontext := Invoke(plistener, "CreateRecoContext")
pgrammar := Invoke(pcontext, "CreateGrammar")
Invoke(pgrammar, "DictationSetState", 0)
prules := Invoke(pgrammar, "Rules")
prulec := Invoke(prules, "Add", "wordsRule", 0x1|0x20)
Invoke(prulec, "Clear")
pstate := Invoke(prulec, "InitialState")

; Add here the words to be recognized! Looks like it understands the null pointer.
Invoke(pstate, "AddWordTransition", "+" . 0, "One")
Invoke(pstate, "AddWordTransition", "+" . 0, "Two")
Invoke(pstate, "AddWordTransition", "+" . 0, "Three")
;;

Invoke(prules, "Commit")
Invoke(pgrammar, "CmdSetRuleState", "wordsRule", 1)
Invoke(prules, "Commit")
ConnectObject(pcontext, "On")

If (pspeaker && plistener && pcontext && pgrammar && prules && prulec && pstate)
   Invoke(pspeaker, "Speak", "Starting Succeeded")
Else   Invoke(pspeaker, "Speak", "Starting Failed")
Return

CleanUp:
Release(pstate)
Release(prulec)
Release(prules)
Release(pgrammar)
Release(pcontext)
Release(plistener)
Release(pspeaker)
CoUninitialize()
ExitApp


OnRecognition(prms, this)
{
   Global   pspeaker
   presult := DispGetParam(prms, 3, 9)
   pphrase := Invoke(presult, "PhraseInfo")
   Invoke(pspeaker, "Speak", "You said " . Invoke(pphrase, "GetText"))
   Release(pphrase)
}

#Include CoHelper.ahk


I get the message:
No event interface exists! Now exit the application!

Any ideas why?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 23rd, 2011, 5:54 am 
Is there something new to this? Anyone developed a better script?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 23rd, 2011, 8:19 am 
Online

Joined: January 15th, 2007, 2:37 pm
Posts: 573
Anonymous wrote:
Is there something new to this? Anyone developed a better script?


Try the script from here, Voice Recognition COM by raven-gm. It runs in the background but you can add new voice commands on the fly by saying "New Rule".

Also try this beta script I've been working on, Easy Automation AHK. It uses the same script as an input module. To use, run the script EasyAutoEdit.ahk, select "Voice Commands" from the input drop down list, enter the phase to speak and click "Use This Phrase". Then select any command you want to use from the commands drop down list and add them the same way. Click "Create Subroutine" in the main window and the subroutine is added to a master script that runs in the background. You can then add other subroutines using any of the input methods from the drop down box the same way. One note, don't use the "Test" function of the current release.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Voice recognition
PostPosted: May 2nd, 2012, 1:05 pm 
I cannot download cohelper can someone send it to me ?
E-mail cecibc@abv.bg


Report this post
Top
  
Reply with quote  
 Post subject: Re: Voice recognition
PostPosted: May 3rd, 2012, 7:08 am 
Online

Joined: January 15th, 2007, 2:37 pm
Posts: 573
Guest wrote:
I cannot download cohelper can someone send it to me ?
E-mail cecibc@abv.bg


Looking through my system I don't seem to have cohelper but I use voice commands quite a bit. As far as I can tell the only libraries needed, for the script I linked to above, is Com and Common_QuickMessage which is downloaded on the same page as the script.

If I'm missing something let me know and I'll look again.

_________________
Links to my scripts.
---------------------------------------------------------------------------------------------

I too have an app for that... and that... and that, and that, and that.
It's called a web browser.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 46 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: specter333, XX0 and 25 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group