def recognize_from_google(self, text): try: self.tts = gTTS(text=text, lang='en') return True except Exception: raise Exception