Adding a variable to a list

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
trey ton

Adding a variable to a list

12 Dec 2017, 06:03

I am testing speech recognition.ahk and trying to add a variable to a list

the code now reads

Code: Select all

s := new CustomSpeech ;create the custom speech recognizer
s.Recognize(["hola", "que pasa", "me entiendes"])
what I am trying to do is add

Code: Select all

mydaying = justsaying
s := new CustomSpeech ;create the custom speech recognizer
s.Recognize([%mydaying%, "que pasa", "me entiendes"])
it does not work,:shock: so I am curious what can I do to make it work?
gregster
Posts: 9021
Joined: 30 Sep 2013, 06:48

Re: Adding a variable to a list

12 Dec 2017, 06:10

First of all, you could add a link to the speech recognition ahk-library that you used, so that not everyone who wants to help has to look for it (there even might be different versions around).
Aprt from that, try

Code: Select all

s.Recognize([mydaying, "que pasa", "me entiendes"])
goesprotocall
Posts: 6
Joined: 13 Mar 2017, 01:31

Re: Adding a variable to a list

12 Dec 2017, 08:47

wow, theres a speech recognition ahk-library?
trey ton

Re: Adding a variable to a list

12 Dec 2017, 08:53

goesprotocall wrote:wow, theres a speech recognition ahk-library?
you can find it here https://gist.github.com/Uberi/6263822

Do you know how to stop the listening once it starts?
gregster
Posts: 9021
Joined: 30 Sep 2013, 06:48

Re: Adding a variable to a list

12 Dec 2017, 08:55

A simple one based on Windows features - look here: https://autohotkey.com/boards/viewtopic ... 236#p97287 and follow the links to Uberis library on Github: https://gist.github.com/Uberi/6263822

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada and 313 guests