AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Voice recognition
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
seba
Guest





PostPosted: Tue Aug 14, 2007 1:46 am    Post subject: Reply with quote

When I run this I get a "No event Interface exists! Please exit application.". What could I be doing wrong? Compiling with 1.0.47.03

Look forward to seeing how this works! Smile
Back to top
Sean



Joined: 12 Feb 2007
Posts: 1141

PostPosted: Tue Aug 14, 2007 5:44 am    Post subject: Reply with quote

seba wrote:
When I run this I get a "No event Interface exists! Please exit application.". What could I be doing wrong?

Which OS are you using? I'm on XPSP2.
You seem to experience the same problem with me.
CreateRecoContext used to fail with the defaultly installed SAPI on my machine.
It started working after I installed Speech SDK 5.1.
Back to top
View user's profile Send private message
DranDane



Joined: 26 Jun 2007
Posts: 54

PostPosted: Fri Oct 26, 2007 11:46 pm    Post subject: Reply with quote

After the format of my computer your script is fully working for me Sean. Thank you for your help.
Back to top
View user's profile Send private message
System Monitor



Joined: 09 Mar 2007
Posts: 383
Location: Unknown

PostPosted: Sat Oct 27, 2007 6:38 pm    Post subject: Reply with quote

I cant get three, but I tried some other phrases and it worked, that's pretty cool! It would make a great addition to AHK
_________________
Back to top
View user's profile Send private message Visit poster's website
afromonkey0



Joined: 13 Oct 2007
Posts: 24

PostPosted: Sun Dec 16, 2007 5:47 pm    Post subject: OH MY GOD Reply with quote

That is mindblowingly awesome.

I am definitely making speech based functions now.
Which variable contains the recognised piece of speech? I'm having trouble finding it. Or do you need to call a function to get it?
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 1141

PostPosted: Mon Dec 17, 2007 12:07 pm    Post subject: Re: OH MY GOD Reply with quote

afromonkey0 wrote:
Which variable contains the recognised piece of speech? I'm having trouble finding it. Or do you need to call a function to get it?

There is a part starting in red color, which currently add three words one/two/three. You can add here your own words.
Back to top
View user's profile Send private message
afromonkey0



Joined: 13 Oct 2007
Posts: 24

PostPosted: Mon Dec 17, 2007 5:14 pm    Post subject: Re: OH MY GOD Reply with quote

Sean wrote:
afromonkey0 wrote:
Which variable contains the recognised piece of speech? I'm having trouble finding it. Or do you need to call a function to get it?

There is a part starting in red color, which currently add three words one/two/three. You can add here your own words.

Thanks, but that wasn't what I meant, I wasn't clear enough.
I mean, when it recognises a word, is a variable set to say which word it recognised, because I would like to make it respond to commands depending on which word it hears. Almost all the variables show 8 figure numbers. Can they be decoded?

Also is it possible to just write out whatever it hears like dictation?

[Edit] I've worked out how to get the string now, but I haven't worked out the second thing about dictation yet.

[Edit Edit] Now I've found that as well. This is gonna be sweet.
Back to top
View user's profile Send private message
Fry



Joined: 01 Nov 2007
Posts: 485

PostPosted: Wed Dec 19, 2007 10:44 pm    Post subject: Reply with quote

can you tell me the variable
_________________
check out my site
www.eliteknifesquad.com

Back to top
View user's profile Send private message
afromonkey0



Joined: 13 Oct 2007
Posts: 24

PostPosted: Thu Dec 20, 2007 1:42 pm    Post subject: Reply with quote

Yeah, if you add a line like this

Code:
text =  % "" . Invoke(pphrase, "GetText")


into the
OnRecognition(prms, this)
section after the
pphrase := Invoke(presult, "PhraseInfo")

the variable 'text' will contain the recognised text
Back to top
View user's profile Send private message
guess
Guest





PostPosted: Mon Jan 14, 2008 3:41 pm    Post subject: what about saying "run word" then word procesor ru Reply with quote

So how can I make the voice recognition run a subroutine or any random ahk code.
Say I want to run a website so I would want to activate the ahk code:

"Run, www.npr.org"
how can I put that in the voice recognition?

is it like this:

.
.
.
; 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(pstate, "AddWordTransition", "+" . 0, "run word")

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

#Include CoHelper.ahk
if text = "run word"
.
.
.
Back to top
afromonkey0



Joined: 13 Oct 2007
Posts: 24

PostPosted: Mon Jan 14, 2008 6:26 pm    Post subject: Reply with quote

I'd go with
Code:

if IsLabel(text)
gosub, text

text:
run, www.whatever.com



very untested code btw
Back to top
View user's profile Send private message
automaticman



Joined: 27 Oct 2006
Posts: 299

PostPosted: Sun Feb 24, 2008 4:26 pm    Post subject: Re: Voice recognition Reply with quote

? What are you using now?
DranDane wrote:
Shoot ... GlovePIE ...

_________________
Imo the usability of ahk-solutions and ahk-forum postings can be improved.
Imagination is more important than knowledge. --Albert Einstein
Back to top
View user's profile Send private message
DranDane



Joined: 26 Jun 2007
Posts: 54

PostPosted: Sun Feb 24, 2008 5:34 pm    Post subject: Reply with quote

I use GlovePIE for all that require voice recognition. This software allow me to script. Shoot is too simple for me.
Back to top
View user's profile Send private message
automaticman



Joined: 27 Oct 2006
Posts: 299

PostPosted: Sun Feb 24, 2008 11:53 pm    Post subject: Reply with quote

DranDane wrote:
I use GlovePIE for all that require voice recognition.
Thanks, I hope GlovePIE has some (pro) audio adjustment settings. Aren't there differences between "voice recognition algorithms"? Are most using that one from Microsoft?
_________________
Imo the usability of ahk-solutions and ahk-forum postings can be improved.
Imagination is more important than knowledge. --Albert Einstein
Back to top
View user's profile Send private message
DranDane



Joined: 26 Jun 2007
Posts: 54

PostPosted: Mon Feb 25, 2008 12:08 am    Post subject: Reply with quote

They are both using the API of Microsoft.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group