import pyttsx3
tts = pyttsx3.init()
tts.setProperty('voice', tts.getProperty('voice')[1])
tts.save_to_file("王德发,爱你", "./filename.mp3")
tts.runAndWait()
微信扫一扫
import pyttsx3
tts = pyttsx3.init()
tts.setProperty('voice', tts.getProperty('voice')[1])
tts.save_to_file("王德发,爱你", "./filename.mp3")
tts.runAndWait()
相关推荐