Skip to content

Commit

Permalink
Small bug fix for last merge
Browse files Browse the repository at this point in the history
  • Loading branch information
AnAndroNerd committed Feb 25, 2024
1 parent c27229a commit 78bb4be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenUtau.Plugin.Builtin/EnglishVCCVPhonemizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class EnglishVCCVPhonemizer : SyllableBasedPhonemizer {
//spl, shr, skr, spr, str, thr, skw, thw, sky, spy
private readonly string[] ccNoParsing = { "sk", "sm", "sn", "sp", "st", "hhy" };
private readonly string[] stopCs = { "b", "d", "g", "k", "p", "t" };
private readonly string[] _cvCs = { "r", "l", "w", "y" };
private readonly string[] ucvCs = { "r", "l", "w", "y" };



Expand Down Expand Up @@ -319,7 +319,7 @@ protected override List<string> ProcessSyllable(Syllable syllable) {
if (phonemes.Count == 0) {
// opera [9 p] + [pr] + [_ru]
parsingCC = $"{cc[0]}{cc[1]}";
if (HasOto(parsingCC, syllable.vowelTone) && lastCPrevWord != 1 && ($"{cc[1]}" == $"_cvCs")) {
if (HasOto(parsingCC, syllable.vowelTone) && lastCPrevWord != 1 && ucvCs.Contains($"{cc[1]}")) {
parsingVCC = $"{prevV} {cc[0]}";

basePhoneme = $"_{cc.Last()}{v}";
Expand Down

0 comments on commit 78bb4be

Please sign in to comment.