Python GTTS Error : AttributeError: 'NoneType' object has no attribute 'group'
问题 I have a project where I was doing text to speech conversion. My audio file is being stored as a mp3. But now, when I check the Gtts api is throwing error. I tried searching but couldn't find a workable solution for the bug. My code is as follows: def synth(sent,language='en',slow = False): """ Synthesize text into audio """ os.system('clear') print("Speaker Output:" + sent) gt_ob = gTTS(text=sent, lang=language, slow=slow) file_name = hashlib.md5(sent.encode('utf-8')).hexdigest() print("File