Your Name 3 년 전
부모
커밋
b4108c718b
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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')