ming hace 3 años
padre
commit
d69ca504cb
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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)
   jieba.load_userdict(userDict_path)
   return jieba
   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 = []
   Y = []
   pitch_step = 0
   pitch_step = 0
   if gender == 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)
         download_hakka_100(hakka_100)
     ch_word_list = list(itertools.chain(*word_data['華語詞義集'].tolist())) + hakka_100.chinese_clean.tolist()
     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')
     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'):
 def file_prepare(name, name_hash,text_content,image_urls,multiLang,lang='zh'):