Skip to content

Commit

Permalink
Chinese CVV: hanzi to pinyin
Browse files Browse the repository at this point in the history
  • Loading branch information
oxygen-dioxide committed Jul 14, 2023
1 parent 7faf722 commit ff2198f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion OpenUtau.Plugin.Builtin/ChineseCVVPhonemizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using OpenUtau.Api;
using OpenUtau.Core;
using Serilog;

namespace OpenUtau.Plugin.Builtin
Expand Down Expand Up @@ -54,6 +54,10 @@ protected override Dictionary<string, string[]> LoadVowelFallbacks() {
.Select(entry => entry.Split('='))
.ToDictionary(parts => parts[0], parts => parts[1].Split(','));
}

public override void SetUp(Note[][] groups) {
BaseChinesePhonemizer.RomanizeNotes(groups);
}
}

class ChineseCVVG2p : IG2p{
Expand Down

0 comments on commit ff2198f

Please sign in to comment.