Spaces:
Runtime error
Runtime error
antoniomae
commited on
Commit
•
1f54695
1
Parent(s):
04ff36d
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ theme = gr.themes.Base(
|
|
26 |
voicelist = ['f-pt-1', 'f-pt-2', 'f-pt-3', 'f-pt-4', 'm-pt-1', 'm-pt-2', 'm-pt-3', 'm-pt-4']
|
27 |
voices = {}
|
28 |
import phonemizer
|
29 |
-
global_phonemizer = phonemizer.backend.EspeakBackend(language='pt', preserve_punctuation=True, with_stress=True)
|
30 |
# todo: cache computed style, load using pickle
|
31 |
# if os.path.exists('voices.pkl'):
|
32 |
# with open('voices.pkl', 'rb') as f:
|
|
|
26 |
voicelist = ['f-pt-1', 'f-pt-2', 'f-pt-3', 'f-pt-4', 'm-pt-1', 'm-pt-2', 'm-pt-3', 'm-pt-4']
|
27 |
voices = {}
|
28 |
import phonemizer
|
29 |
+
global_phonemizer = phonemizer.backend.EspeakBackend(language='pt-pt', preserve_punctuation=True, with_stress=True)
|
30 |
# todo: cache computed style, load using pickle
|
31 |
# if os.path.exists('voices.pkl'):
|
32 |
# with open('voices.pkl', 'rb') as f:
|