Skip to content

Commit

Permalink
fixed espnet#3716
Browse files Browse the repository at this point in the history
  • Loading branch information
kan-bayashi authored Dec 7, 2021
1 parent 3e766e5 commit 4d42bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espnet2/text/phoneme_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def pyopenjtalk_g2p_prosody(text: str, drop_unvoiced_vowels: bool = True) -> Lis

a2_next = _numeric_feature_by_regex(r"\+(\d+)\+", labels[n + 1])
# accent phrase border
if a3 == 1 and a2_next == 1:
if a3 == 1 and a2_next == 1 and p3 in "aeiouAEIOUNcl":
phones.append("#")
# pitch falling
elif a1 == 0 and a2_next == a2 + 1 and a2 != f1:
Expand Down

0 comments on commit 4d42bf5

Please sign in to comment.