Your Name 3 tahun lalu
induk
melakukan
3fda59da50
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      apis/proc_video.py

+ 1 - 1
apis/proc_video.py

@@ -13,7 +13,7 @@ txt=lines[0].strip()
 engine = pyttsx3.init()
 voices = engine.getProperty('voices')
 for v in voices:
-    if 'Mandarin' in str(v.languages):
+    if 'Mandarin' in str(v.languages) or 'Mandarin' in v.id or 'Mandarin' in v.name:
         print(v.id)
         print(v.gender)
         print(v.name)