[Speech] Added functions to recognized speech

words are in grammar file
fixed thread stopping