def recognize_input(self, already_activated=False):
        """
        Recognize input from mic and returns transcript if activation tag (assistant name) exist
        """

        while True:
            transcript = self._recognize_speech_from_mic()
            if already_activated or self._activation_name_exist(transcript):
                transcript = self._remove_activation_word(transcript)
                return transcript

        Recognize input from mic and returns transcript if activation tag (assistant name) exist
        
src/jarvis/jarvis/engines/stt.py