Explorar el Código

add hakka tts

ming hace 3 años
padre
commit
c1fd5ed613
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      OpenshotService/openshot_video_generator.py

+ 1 - 1
OpenshotService/openshot_video_generator.py

@@ -174,7 +174,7 @@ def file_prepare(name, name_hash,text_content,image_urls,multiLang,lang='zh'):
     #make mp3
     #make mp3
     txt_idx = 0
     txt_idx = 0
     for txt in text_content:
     for txt in text_content:
-        if mulitLang==3:
+        if multiLang==3:
             hakkaTTS(dir_sound+name_hash+"/"+str(txt_idx)+".mp3",txt)
             hakkaTTS(dir_sound+name_hash+"/"+str(txt_idx)+".mp3",txt)
         else:
         else:
             if lang!='zh' or multiLang==1:
             if lang!='zh' or multiLang==1: