thepianist9 commited on
Commit
ec700dc
Β·
verified Β·
1 Parent(s): 160b82f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -136,6 +136,11 @@ def Talker_response(question_audio = None, method = 'SadTalker', text = '', voic
136
  return None
137
  voice = default_voice if voice not in tts.SUPPORTED_VOICE+["ε…‹ιš†ηƒŸε—“ιŸ³", "ε…‹ιš†ε£°ιŸ³"] else voice
138
  print(voice, character)
 
 
 
 
 
139
  driven_audio, driven_vtt, _ = LLM_response(question_audio, text, voice, rate, volume, pitch)
140
  pose_style = random.randint(0, 45)
141
  if method == 'SadTalker':
@@ -191,6 +196,7 @@ def human_respone(history, voice = 'zh-CN-XiaoxiaoNeural', rate = 0, volume = 0,
191
  default_voice = 'zh-CN-XiaoxiaoNeural'
192
  elif character == '男性角色':
193
  # 男性角色
 
194
  source_image = r'./inputs/boy.png'
195
  pic_path = "./inputs/boy.png"
196
  crop_pic_path = "./inputs/first_frame_dir_boy/boy.png"
 
136
  return None
137
  voice = default_voice if voice not in tts.SUPPORTED_VOICE+["ε…‹ιš†ηƒŸε—“ιŸ³", "ε…‹ιš†ε£°ιŸ³"] else voice
138
  print(voice, character)
139
+ print(question_audio)
140
+ print(text)
141
+
142
+
143
+
144
  driven_audio, driven_vtt, _ = LLM_response(question_audio, text, voice, rate, volume, pitch)
145
  pose_style = random.randint(0, 45)
146
  if method == 'SadTalker':
 
196
  default_voice = 'zh-CN-XiaoxiaoNeural'
197
  elif character == '男性角色':
198
  # 男性角色
199
+
200
  source_image = r'./inputs/boy.png'
201
  pic_path = "./inputs/boy.png"
202
  crop_pic_path = "./inputs/first_frame_dir_boy/boy.png"