pyttsx3的用法,很简单
作者:互联网
# -*- encoding: utf-8 -*-
import pyttsx3
engine = pyttsx3.init() #初始化
rate = engine.getProperty('rate')
engine.setProperty('rate', rate-5) #语速
volume = engine.getProperty('volume') #音量
engine.setProperty('volume', volume + 5)
engine.say('这里是被读出的文字') #读的内容
engine.runAndWait()
标签:engine,pyttsx3,用法,volume,rate,简单,setProperty,getProperty 来源: https://blog.csdn.net/zhao198103/article/details/104864027