📜  如何让 Python 说话 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:42.287000             🧑  作者: Mango

代码示例3
#pip3 install pyttsx3
#apt-get install alsa-utils
import pyttsx3, time 
engine = pyttsx3.init() 
engine.say("Hi, I am text to speach") 
engine.runAndWait()