Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def synthesize(text, speed, progress=gr.Progress()):
|
|
15 |
}
|
16 |
speakers=['EN-US','EN-Default']
|
17 |
bio = io.BytesIO()
|
18 |
-
models[
|
19 |
return bio.getvalue()
|
20 |
|
21 |
|
|
|
15 |
}
|
16 |
speakers=['EN-US','EN-Default']
|
17 |
bio = io.BytesIO()
|
18 |
+
models['EN'].tts_to_file(text, models['EN'].hps.data.spk2id[speakers[0]], bio, speed=speed, pbar=progress.tqdm, format='wav')
|
19 |
return bio.getvalue()
|
20 |
|
21 |
|