我正在尝试用Python创建一个ChatBot,VA,用于接收音频输出,我有gtts(谷歌文本到语音),playsound包,并在播放前使用系统操作系统保存音频文件。代码如下:import speech_recognition as srimport os #to save the filedef speak(text):#this defines the function SPEAK and creates the command for
我正在做我的大学项目,这个项目使用python,我使用了gtts模块(我使用该模块使用gTTS将文本转换为语音),但几天后,我得到了一些错误,比如Max重试超出了URL:Traceback\lib\site-packages\gtts\tts.py", line 94, in save
self.write_to_fp(f) File "C:\Python\lib\site-packages\gtts\tts.py&quo