I am making a chat bot which has a function which speaks out the input text in an other thread while listening to the user to see if he says \'stop\', to terminate the speec