Python中语音播报的应用(简单版)
用到的第三方库为pyttsx3,需要安装且导入使用。import pyttsx3engine = pyttsx3.init()engine.say("I will speak this text")engine.runAndWait()Changing Voice , Rate and Volume :import pyttsx3engine = pyttsx3.init() # object creation""" RATE"""rate = engine.get...
原创
2022-02-28 14:44:03 ·
6200 阅读 ·
1 评论