from gtts import gTTS
import os
tts=gTTS(text="Both are great",lang="en")
tts.save("both.mp3")
os.system("mpg12 both.mp3")我遇到了这个错误,"cannot import name gTTS“。
发布于 2016-11-26 11:23:36
尝试使用sudo pip install gtts命令重新安装gtts模块,以前的安装可能已损坏或缺少某些依赖项。
https://stackoverflow.com/questions/40814496
复制相似问题