import pyttsx3
tts = pyttsx3.init()
tts.setProperty('voice', tts.getProperty('voice')[1])
tts.save_to_file("王德发,爱你", "./filename.mp3")
tts.runAndWait()
pyttsx3 保存语音,输出到文件
阅读 88
2022-01-24
import pyttsx3
tts = pyttsx3.init()
tts.setProperty('voice', tts.getProperty('voice')[1])
tts.save_to_file("王德发,爱你", "./filename.mp3")
tts.runAndWait()
相关推荐
精彩评论(0)