ming il y a 3 ans
Parent
commit
d69ca504cb
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      OpenshotService/hakkaUtil.py
  2. 1 1
      OpenshotService/openshot_video_generator.py

+ 1 - 1
OpenshotService/hakkaUtil.py

@@ -128,7 +128,7 @@ def import_jieba_userdict(ch_word_list, userDict_path='userDict.txt'):
   jieba.load_userdict(userDict_path)
   return jieba
 
-def gen_hakka_tts(word_data,multi_sound,hakka_100,ch_sentence,mp3_path='test1.mp3',gender,verbose=0):
+def gen_hakka_tts(word_data,multi_sound,hakka_100,ch_sentence,gender,mp3_path='test1.mp3',verbose=0):
   Y = []
   pitch_step = 0
   if gender == 0:

+ 1 - 1
OpenshotService/openshot_video_generator.py

@@ -144,7 +144,7 @@ def hakkaTTS(mp3_path,ch_sentence,gender):
         download_hakka_100(hakka_100)
     ch_word_list = list(itertools.chain(*word_data['華語詞義集'].tolist())) + hakka_100.chinese_clean.tolist()
     import_jieba_userdict(ch_word_list=ch_word_list, userDict_path='userDict.txt')
-    gen_hakka_tts(word_data,multi_sound,hakka_100,ch_sentence,mp3_path,gender)
+    gen_hakka_tts(word_data,multi_sound,hakka_100,ch_sentence,gender,mp3_path)
 
 
 def file_prepare(name, name_hash,text_content,image_urls,multiLang,lang='zh'):