Spaces:
Running
on
Zero
Running
on
Zero
minro
Browse files
app.py
CHANGED
@@ -21,6 +21,7 @@ def synthesize(conversation_text, speed, progress=gr.Progress()):
|
|
21 |
for i, turn in enumerate(conversation["conversation"]):
|
22 |
bio = io.BytesIO()
|
23 |
text = turn["text"]
|
|
|
24 |
speaker = speakers[i % 2]
|
25 |
speaker_id = models['EN'].hps.data.spk2id[speaker]
|
26 |
models['EN'].tts_to_file(text, speaker_id, bio, speed=speed, pbar=progress.tqdm, format='wav')
|
|
|
21 |
for i, turn in enumerate(conversation["conversation"]):
|
22 |
bio = io.BytesIO()
|
23 |
text = turn["text"]
|
24 |
+
print(text)
|
25 |
speaker = speakers[i % 2]
|
26 |
speaker_id = models['EN'].hps.data.spk2id[speaker]
|
27 |
models['EN'].tts_to_file(text, speaker_id, bio, speed=speed, pbar=progress.tqdm, format='wav')
|