Update MeloTTS/melo/text/english.py
Browse files
MeloTTS/melo/text/english.py
CHANGED
@@ -8,7 +8,7 @@ from . import symbols
|
|
8 |
from .english_utils.abbreviations import expand_abbreviations
|
9 |
from .english_utils.time_norm import expand_time_english
|
10 |
from .english_utils.number_norm import normalize_numbers
|
11 |
-
|
12 |
|
13 |
from transformers import AutoTokenizer
|
14 |
|
@@ -249,7 +249,7 @@ def g2p(text, pad_start_end=True, tokenized=None):
|
|
249 |
phones.append(ph)
|
250 |
tones.append(0)
|
251 |
phone_len += 1
|
252 |
-
aaa =
|
253 |
word2ph += aaa
|
254 |
phones = [post_replace_ph(i) for i in phones]
|
255 |
|
|
|
8 |
from .english_utils.abbreviations import expand_abbreviations
|
9 |
from .english_utils.time_norm import expand_time_english
|
10 |
from .english_utils.number_norm import normalize_numbers
|
11 |
+
from .japanese import distribute_phone
|
12 |
|
13 |
from transformers import AutoTokenizer
|
14 |
|
|
|
249 |
phones.append(ph)
|
250 |
tones.append(0)
|
251 |
phone_len += 1
|
252 |
+
aaa = distribute_phone(phone_len, word_len)
|
253 |
word2ph += aaa
|
254 |
phones = [post_replace_ph(i) for i in phones]
|
255 |
|