Your Name před 3 roky
rodič
revize
3fda59da50
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)