Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -169,7 +169,7 @@ def infer_batch(ref_audio, ref_text, gen_text_batches, exp_name, remove_silence,
|
|
169 |
gen_text_len = len(gen_text.encode('utf-8')) + 3 * len(re.findall(zh_pause_punc, gen_text))
|
170 |
duration = ref_audio_len + int(ref_audio_len / ref_text_len * gen_text_len / speed)
|
171 |
print(f"Duration: {duration} seconds")
|
172 |
-
duration = int(gen_text_len / (speed * 10))
|
173 |
print(f"Duration: {duration} seconds")
|
174 |
|
175 |
# inference
|
|
|
169 |
gen_text_len = len(gen_text.encode('utf-8')) + 3 * len(re.findall(zh_pause_punc, gen_text))
|
170 |
duration = ref_audio_len + int(ref_audio_len / ref_text_len * gen_text_len / speed)
|
171 |
print(f"Duration: {duration} seconds")
|
172 |
+
duration = int(133 * gen_text_len / (speed * 10))
|
173 |
print(f"Duration: {duration} seconds")
|
174 |
|
175 |
# inference
|