Spaces:
Runtime error
Runtime error
antoniomae
commited on
Commit
•
04ff36d
1
Parent(s):
07581a1
Update app.py
Browse files
app.py
CHANGED
@@ -23,10 +23,10 @@ import pickle
|
|
23 |
theme = gr.themes.Base(
|
24 |
font=[gr.themes.GoogleFont('Libre Franklin'), gr.themes.GoogleFont('Public Sans'), 'system-ui', 'sans-serif'],
|
25 |
)
|
26 |
-
voicelist = ['f-
|
27 |
voices = {}
|
28 |
import phonemizer
|
29 |
-
global_phonemizer = phonemizer.backend.EspeakBackend(language='
|
30 |
# todo: cache computed style, load using pickle
|
31 |
# if os.path.exists('voices.pkl'):
|
32 |
# with open('voices.pkl', 'rb') as f:
|
|
|
23 |
theme = gr.themes.Base(
|
24 |
font=[gr.themes.GoogleFont('Libre Franklin'), gr.themes.GoogleFont('Public Sans'), 'system-ui', 'sans-serif'],
|
25 |
)
|
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:
|