Your Name 3 년 전
부모
커밋
33606489e7
1개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. 6 5
      apis/proc_video.py

+ 6 - 5
apis/proc_video.py

@@ -13,11 +13,12 @@ txt=lines[0].strip()
 engine = pyttsx3.init()
 voices = engine.getProperty('voices')
 for v in voices:
-    print(v.id)
-    print(v.gender)
-    print(v.name)
-    print(v.age)
-    print(str(v.languages))
+    if 'Mandarin' in str(v.languages):
+        print(v.id)
+        print(v.gender)
+        print(v.name)
+        print(v.age)
+        print(str(v.languages))
 sys.exit()
 engine.setProperty('voice', voices[1].id)