Your Name hace 3 años
padre
commit
b4108c718b
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      apis/proc_video.py

+ 5 - 0
apis/proc_video.py

@@ -10,6 +10,11 @@ fr.close()
 txt=lines[0].strip()
 
 engine = pyttsx3.init()
+voices = engine.getProperty('voices')
+print(voices)
+sys.exit()
+engine.setProperty('voice', voices[1].id)
+
 engine.setProperty('voice', 'zh')
 engine.setProperty('rate',175)
 engine.save_to_file(txt, '/tmp/ok2.mp3')