HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
BlueDragonFire
Posts: 1
Joined: 14 Jul 2021, 16:32

Re: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)

14 Jul 2021, 16:58

gregster wrote:
25 Jun 2021, 03:48
D4ng_kun wrote:
25 Jun 2021, 03:10
It seems like both link were removed..
Can hotvoice run without both the Runtime and language Pack ? I am on Window 10 64bit
I doubt it.
No idea where MS put the components - sorry, I can't find them at the moment.
After being gone from AHK for MANY years (I can't recall my previous username on the old forum - had something to do with 'dragon' I'm sure) I figured I'd restart my interest in it. Partly because of an idea I'm working on that I think can be done using AHK.

Anyway, I'm looking into using voice for it and discovered that blasted '404' at Microsoft also. I did some googling and came across the link below for the Microsoft stuff. Since I'm currently on my Android - and not yet even in a position to test these though I'll be installing them when I get onto my laptop - I figured someone here with more knowledge than I have may be able to check them out better and make sure they're the right ones.

Here's the site I found the links on (for 64 and 32 bit).
[url]https://mr_belowski.gitlab.io/CrewChiefV4/VoiceRecognition_InstallationTraining.html#[/url]

The site seems legitimate and both links are direct-downloads for ZIP files with installers and files for US & UK language packs (scroll down a bit for the download links). It looks like its voice program is used for gaming - I'm keeping the link and might check to see if there are other possible uses for this 'Crew Chief' at a later date.

Well, I guess that's my current 2¢ worth. Hopefully it helps until Microsucks gets their act together and MAYBE fixes their links or explains themselves (like that'll happen - HA).

Ciao,
BDF :wave:
Starker
Posts: 22
Joined: 27 Mar 2018, 18:39

Re: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)

05 Feb 2022, 21:22

I want to use this to enable voice activation in a game with only push-to-talk.

Can I create a script that holds a key as long as any input from the mic is detected?

Can I set a minimum required input volume?
monrrah
Posts: 1
Joined: 08 Feb 2022, 15:52

Re: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)

08 Feb 2022, 16:24

hello, is there a way to reduce the sensitivity of the voice capture? I did a test here and it worked, but with only 3 letters of a word the hotkay is already triggered :crazy:
Starker
Posts: 22
Joined: 27 Mar 2018, 18:39

Re: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)

08 Feb 2022, 19:36

Starker wrote:
05 Feb 2022, 21:22
I want to use this to enable voice activation in a game with only push-to-talk.

Can I create a script that holds a key as long as any input from the mic is detected?

Can I set a minimum required input volume?
I am working on using this to bypass a push-to-talk requirment. When I run my script, I get a ton of errors from HotVoice.ahk. Simple Example.ahk works fine. What's wrong with my script?

Code: Select all

#include Lib\HotVoice.ahk ;Load the HotVoice Library
hv := new HotVoice() ;Create a new HotVoice class
testGrammar := hv.NewGrammar() ;Create a new Grammar
testGrammar.AppendString("Test") ;Add the word "Test" to it
hv.LoadGrammar(testGrammar, "Test", Func("MyFunc")) ;Load the Grammar
hv.StartRecognizer() ;Start the Recognizer
;LogRecognizerLoad(recognizer) ;This is causing errors so has been supressed until earlier errors are fixed
hv.SubscribeVolume(Func("PressTalk"))
Return
PressTalk(volume) {
    If (volume >= 50) {
        Send {P Down} ;P is the push-to-talk button in the game
    }
    Else {
    	Send {P Up}
    }
    Return
}
Last edited by joedf on 08 Feb 2022, 20:28, edited 1 time in total.
Reason: [code] tags
Starker
Posts: 22
Joined: 27 Mar 2018, 18:39

Re: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)

08 Feb 2022, 19:38

Starker wrote:
05 Feb 2022, 21:22
I want to use this to enable voice activation in a game with only push-to-talk.

Can I create a script that holds a key as long as any input from the mic is detected?

Can I set a minimum required input volume?
I am working on using this to bypass a push-to-talk requirement. When I run my script, I get a ton of errors from HotVoice.ahk. Simple Example.ahk works fine. What's wrong with my script?

Code: Select all

#include Lib\HotVoice.ahk ;Load the HotVoice Library
hv := new HotVoice() ;Create a new HotVoice class
testGrammar := hv.NewGrammar() ;Create a new Grammar
testGrammar.AppendString("Test") ;Add the word "Test" to it
hv.LoadGrammar(testGrammar, "Test", Func("MyFunc")) ;Load the Grammar
hv.StartRecognizer() ;Start the Recognizer
;LogRecognizerLoad(recognizer) ;This is causing errors so has been supressed until earlier errors are fixed
hv.SubscribeVolume(Func("PressTalk"))
Return
PressTalk(volume) {
    If (volume >= 50) {
        Send {P Down} ;P is the push-to-talk button in the game
    }
    Else {
    	Send {P Up}
    }
    Return
}
Errors:
image.png
image.png (22.16 KiB) Viewed 667 times
image.png
image.png (20.87 KiB) Viewed 667 times
image.png
image.png (21.45 KiB) Viewed 667 times

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 69 guests