first implementation of SpeechRecognizer audio timeout and activation +
putting trainer functions into their own class