forked from stakira/OpenUtau
-
Notifications
You must be signed in to change notification settings - Fork 0
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 stakira#1006 from oxygen-dioxide/diffsinger-dict
DiffSinger: support different dictionaries for Chinese, Japanese and Cantonese
- Loading branch information
Showing
13 changed files
with
60 additions
and
47 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
File renamed without changes.
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
36 changes: 18 additions & 18 deletions
36
...DiffSinger/DiffSingerItalianPhonemizer.cs → ...honemizers/DiffSingerItalianPhonemizer.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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
using OpenUtau.Api; | ||
using OpenUtau.Core.G2p; | ||
|
||
namespace OpenUtau.Core.DiffSinger { | ||
[Phonemizer("DiffSinger Italian Phonemizer", "DIFFS IT", language: "IT")] | ||
public class DiffSingerItalianPhonemizer : DiffSingerG2pPhonemizer { | ||
protected override string GetDictionaryName() => "dsdict-it.yaml"; | ||
protected override IG2p LoadBaseG2p() => new ItalianG2p(); | ||
protected override string[] GetBaseG2pVowels() => new string[] { | ||
"a", "a1", "e", "e1", "EE", "i", "i1", "o", "o1", "OO", "u", "u1" | ||
}; | ||
|
||
protected override string[] GetBaseG2pConsonants() => new string[] { | ||
"b", "d", "dz", "dZZ", "f", "g", "JJ", "k", "l", "LL", "m", "n", | ||
"nf", "ng", "p", "r", "rr", "s", "SS", "t", "ts", "tSS", "v", "w", "y", "z" | ||
}; | ||
} | ||
} | ||
using OpenUtau.Api; | ||
using OpenUtau.Core.G2p; | ||
|
||
namespace OpenUtau.Core.DiffSinger { | ||
[Phonemizer("DiffSinger Italian Phonemizer", "DIFFS IT", language: "IT")] | ||
public class DiffSingerItalianPhonemizer : DiffSingerG2pPhonemizer { | ||
protected override string GetDictionaryName() => "dsdict-it.yaml"; | ||
protected override IG2p LoadBaseG2p() => new ItalianG2p(); | ||
protected override string[] GetBaseG2pVowels() => new string[] { | ||
"a", "a1", "e", "e1", "EE", "i", "i1", "o", "o1", "OO", "u", "u1" | ||
}; | ||
|
||
protected override string[] GetBaseG2pConsonants() => new string[] { | ||
"b", "d", "dz", "dZZ", "f", "g", "JJ", "k", "l", "LL", "m", "n", | ||
"nf", "ng", "p", "r", "rr", "s", "SS", "t", "ts", "tSS", "v", "w", "y", "z" | ||
}; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
OpenUtau.Core/DiffSinger/Phonemizers/DiffSingerJapanesePhonemizer.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,10 @@ | ||
using System.Collections.Generic; | ||
|
||
using OpenUtau.Api; | ||
|
||
namespace OpenUtau.Core.DiffSinger { | ||
[Phonemizer("DiffSinger Japanese Phonemizer", "DIFFS JA", language: "JA")] | ||
public class DiffSingerJapanesePhonemizer : DiffSingerBasePhonemizer { | ||
protected override string GetDictionaryName()=>"dsdict-ja.yaml"; | ||
} | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.