antoniomae commited on
Commit
04ff36d
1 Parent(s): 07581a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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-us-1', 'f-us-2', 'f-us-3', 'f-us-4', 'm-us-1', 'm-us-2', 'm-us-3', 'm-us-4']
27
  voices = {}
28
  import phonemizer
29
- global_phonemizer = phonemizer.backend.EspeakBackend(language='en-us', 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:
 
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: