"""
python3: pip install pyttsx3
python2: pip install pyttsx
文本转语音
"""
import pyttsx3
import time
str = "Come on, Catherine"
engine = pyttsx3.init()
num = 0
while num < 3:
engine.say(str)
engine.runAndWait()
num += 1
time.sleep(10)
python语音播报
最新推荐文章于 2024-07-31 17:05:31 发布