Elgin wrote:Code: Select all
mysaying = tourist sale ; or: mysaying := "tourist sale"
s.Recognize([mysaying, "que pasa", "me entiendes"])
works as expected for me and displays a message box "tourist sale".
it works for me too now, appreciate that
can you give me an example on how to stop the listening?
here is from the documentation
"### Recognizer.Recognize(Values = True)
Set the values that can be recognized by the recognizer.
If `Values` is an array of strings, the array is interpreted as a list of possibile phrases to recognize. Phrases not in the array will not be recognized. This provides a relatively high degree of recognition accuracy compared to dictation mode.
If `Values` is otherwise truthy, dictation mode is enabled, which means that the speech recognizer will attempt to recognize any phrases spoken.
If `Values` is falsy, the speech recognizer will be disabled and will stop listening if currently doing so."
Can you tell me what it means by falsy? I am assuming false, however, what do I write?
I tried
Recognizer.Recognize(Values = False)
I knew its nonsense for me to do that but im trying