Spaces:
Running
Running
thepianist9
commited on
Update app.py
Browse files
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"
|