我尝试使用 gtts:
from gtts import gTTs
import os
tts = gTTS(text='Good morning', lang='en')
tts.save("good.mp3")
os.system("mpg321 good.mp3")
但我得到了这个错误:
'mpg321' is not recognized as an internal or external command operable program or batch file.
为什么会这样?我什至有portaudio,但不知道该怎么做。