Spaces:
Running
on
Zero
Running
on
Zero
speaker changed
Browse files
README.md
CHANGED
@@ -1,11 +1,9 @@
|
|
1 |
---
|
2 |
title: Podcastify
|
3 |
-
colorFrom: blue
|
4 |
-
colorTo: blue
|
5 |
sdk: gradio
|
6 |
emoji: 🗣️
|
7 |
license: mit
|
8 |
app_file: app.py
|
9 |
pinned: true
|
10 |
-
short_description:
|
11 |
---
|
|
|
1 |
---
|
2 |
title: Podcastify
|
|
|
|
|
3 |
sdk: gradio
|
4 |
emoji: 🗣️
|
5 |
license: mit
|
6 |
app_file: app.py
|
7 |
pinned: true
|
8 |
+
short_description: Turn Any Article to Podcast
|
9 |
---
|
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['EN'].tts_to_file(text, models['EN'].hps.data.spk2id[speakers[
|
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[1]], bio, speed=speed, pbar=progress.tqdm, format='wav')
|
19 |
return bio.getvalue()
|
20 |
|
21 |
|