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

Added "ThaiG2p" & "DIFFS TH" DiffSinger Thai Phonemizer #1274

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
23 changes: 23 additions & 0 deletions OpenUtau.Core/DiffSinger/Phonemizers/DiffSingerThaiPhonemizer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using OpenUtau.Api;
using OpenUtau.Core.G2p;

namespace OpenUtau.Core.DiffSinger
{
[Phonemizer("DiffSinger Thai Phonemizer", "DIFFS TH", language: "TH")]
public class DiffSingerThaiPhonemizer : DiffSingerG2pPhonemizer
{
protected override string GetDictionaryName()=>"dsdict-th.yaml";
protected override string GetLangCode()=>"th";
protected override IG2p LoadBaseG2p() => new ThaiG2p();
protected override string[] GetBaseG2pVowels() => new string[] {
"a", "i", "u", "e", "o", "A", "O", "E",
"Ua", "U", "ia", "ua", "I", "au"
};

protected override string[] GetBaseG2pConsonants() => new string[] {
"b", "ch", "d", "f", "h", "j", "k", "kk", "l", "m",
"n", "ng", "p", "pp", "r", "s", "t", "tt", "w", "W",
"y", "Y", "B", "D", "K"
};
}
}
336 changes: 173 additions & 163 deletions OpenUtau.Core/G2p/Data/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading