Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZH CVVC: Add tests for mixed hanzi and pinyin lyrics #1240

Merged
merged 2 commits into from
Aug 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion OpenUtau.Test/Plugins/ZhCvvcTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ protected override Phonemizer CreatePhonemizer() {
new string[] { "", "", "" },
new string[] { "- niF4", "i hF4", "haoC#4", "ao RC#4" })]


//Mixed hanzi and pinyin input
[InlineData("zh_cvvc",
new string[] { "鸡", "ni", "tai", "美" },
new string[] { "", "", "", "" },
new string[] { "F4", "F4", "F4", "F4" },
new string[] { "", "", "", "" },
new string[] { "- jiF4", "i nyF4", "niF4", "i tF4", "taiF4", "ai mF4", "meiF4", "ei RF4" })]

public void PhonemizeTest(string singerName, string[] lyrics, string[] alts, string[] tones, string[] colors, string[] aliases) {
RunPhonemizeTest(singerName, lyrics, alts, tones, colors, aliases);
}
Expand Down
Loading