forked from stakira/OpenUtau
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from stakira/master
merge from official
- Loading branch information
Showing
41 changed files
with
601 additions
and
744 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
OpenUtau.Core/DiffSinger/Phonemizers/DiffSingerKoreanG2PPhonemizer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using OpenUtau.Api; | ||
using OpenUtau.Core.G2p; | ||
|
||
namespace OpenUtau.Core.DiffSinger | ||
{ | ||
[Phonemizer("DiffSinger Korean G2P Phonemizer", "DIFFS KO", language: "KO", author: "Cardroid6")] | ||
public class DiffSingerKoreanG2PPhonemizer : DiffSingerG2pPhonemizer | ||
{ | ||
protected override string GetDictionaryName() => "dsdict-ko.yaml"; | ||
protected override IG2p LoadBaseG2p() => new KoreanG2p(); | ||
protected override string[] GetBaseG2pVowels() => new string[] { | ||
"a", "e", "eo", "eu", "i", "o", "u", "w", "y" | ||
}; | ||
|
||
protected override string[] GetBaseG2pConsonants() => new string[] { | ||
"K", "L", "M", "N", "NG", "P", "T", "b", "ch", "d", | ||
"g", "h", "j", "jj", "k", "kk", "m", "n", "p", "pp", | ||
"r", "s", "ss", "t", "tt" | ||
}; | ||
} | ||
} |
Oops, something went wrong.