Skip to content

Commit

Permalink
Merge pull request #1050 from AnAndroNerd/master
Browse files Browse the repository at this point in the history
Small bug fix for last VCCV merge
  • Loading branch information
stakira committed Feb 25, 2024
2 parents 3aeee96 + 78bb4be commit 8597a98
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 @@ public class EnglishVCCVPhonemizer : SyllableBasedPhonemizer {
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 8597a98

Please sign in to comment.