updating speech recognition logic