| View previous topic :: View next topic |
| Author |
Message |
seba Guest
|
Posted: Tue Aug 14, 2007 1:46 am Post subject: |
|
|
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!  |
|
| Back to top |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 1141
|
Posted: Tue Aug 14, 2007 5:44 am Post subject: |
|
|
| 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 |
|
 |
DranDane
Joined: 26 Jun 2007 Posts: 54
|
Posted: Fri Oct 26, 2007 11:46 pm Post subject: |
|
|
| After the format of my computer your script is fully working for me Sean. Thank you for your help. |
|
| Back to top |
|
 |
System Monitor
Joined: 09 Mar 2007 Posts: 383 Location: Unknown
|
Posted: Sat Oct 27, 2007 6:38 pm Post subject: |
|
|
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 |
|
 |
afromonkey0
Joined: 13 Oct 2007 Posts: 24
|
Posted: Sun Dec 16, 2007 5:47 pm Post subject: OH MY GOD |
|
|
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 |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 1141
|
Posted: Mon Dec 17, 2007 12:07 pm Post subject: Re: OH MY GOD |
|
|
| 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 |
|
 |
afromonkey0
Joined: 13 Oct 2007 Posts: 24
|
Posted: Mon Dec 17, 2007 5:14 pm Post subject: Re: OH MY GOD |
|
|
| 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 |
|
 |
Fry
Joined: 01 Nov 2007 Posts: 485
|
Posted: Wed Dec 19, 2007 10:44 pm Post subject: |
|
|
can you tell me the variable _________________ check out my site
www.eliteknifesquad.com
 |
|
| Back to top |
|
 |
afromonkey0
Joined: 13 Oct 2007 Posts: 24
|
Posted: Thu Dec 20, 2007 1:42 pm Post subject: |
|
|
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 |
|
 |
guess Guest
|
Posted: Mon Jan 14, 2008 3:41 pm Post subject: what about saying "run word" then word procesor ru |
|
|
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
|
Posted: Mon Jan 14, 2008 6:26 pm Post subject: |
|
|
I'd go with
very untested code btw |
|
| Back to top |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 299
|
Posted: Sun Feb 24, 2008 4:26 pm Post subject: Re: Voice recognition |
|
|
? 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 |
|
 |
DranDane
Joined: 26 Jun 2007 Posts: 54
|
Posted: Sun Feb 24, 2008 5:34 pm Post subject: |
|
|
| I use GlovePIE for all that require voice recognition. This software allow me to script. Shoot is too simple for me. |
|
| Back to top |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 299
|
Posted: Sun Feb 24, 2008 11:53 pm Post subject: |
|
|
| 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 |
|
 |
DranDane
Joined: 26 Jun 2007 Posts: 54
|
Posted: Mon Feb 25, 2008 12:08 am Post subject: |
|
|
| They are both using the API of Microsoft. |
|
| Back to top |
|
 |
|