Spaces:
Running
Running
Commit
·
e4d7e13
1
Parent(s):
4751254
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ theme = gr.themes.Base(
|
|
| 7 |
)
|
| 8 |
voicelist = ['f-us-1', 'f-us-2', 'f-us-3', 'f-us-4', 'm-us-1', 'm-us-2', 'm-us-3', 'm-us-4']
|
| 9 |
voices = {}
|
| 10 |
-
|
| 11 |
for v in voicelist:
|
| 12 |
voices[v] = styletts2importable.compute_style(f'voices/{v}.wav')
|
| 13 |
def synthesize(text, voice):
|
|
|
|
| 7 |
)
|
| 8 |
voicelist = ['f-us-1', 'f-us-2', 'f-us-3', 'f-us-4', 'm-us-1', 'm-us-2', 'm-us-3', 'm-us-4']
|
| 9 |
voices = {}
|
| 10 |
+
# todo cache computed style
|
| 11 |
for v in voicelist:
|
| 12 |
voices[v] = styletts2importable.compute_style(f'voices/{v}.wav')
|
| 13 |
def synthesize(text, voice):
|