implemented speech recognition