Spaces:
Runtime error
Runtime error
antoniomae
commited on
Commit
•
357ceae
1
Parent(s):
fd14110
Update styletts2importable.py
Browse files- styletts2importable.py +1 -1
styletts2importable.py
CHANGED
@@ -76,7 +76,7 @@ elif torch.backends.mps.is_available():
|
|
76 |
# device = 'mps'
|
77 |
|
78 |
import phonemizer
|
79 |
-
global_phonemizer = phonemizer.backend.EspeakBackend(language='pt
|
80 |
# phonemizer = Phonemizer.from_checkpoint(str(cached_path('https://public-asai-dl-models.s3.eu-central-1.amazonaws.com/DeepPhonemizer/pt_pt_cmudict_ipa_forward.pt')))
|
81 |
|
82 |
|
|
|
76 |
# device = 'mps'
|
77 |
|
78 |
import phonemizer
|
79 |
+
global_phonemizer = phonemizer.backend.EspeakBackend(language='pt', preserve_punctuation=True, with_stress=True)
|
80 |
# phonemizer = Phonemizer.from_checkpoint(str(cached_path('https://public-asai-dl-models.s3.eu-central-1.amazonaws.com/DeepPhonemizer/pt_pt_cmudict_ipa_forward.pt')))
|
81 |
|
82 |
|