-
Notifications
You must be signed in to change notification settings - Fork 288
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 #953 from oxygen-dioxide/diffs-zh
Fix diffsinger phoneme misplace if lyric contains space; separate diffsinger Chinese phonemizer
- Loading branch information
Showing
5 changed files
with
49 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Collections.Generic; | ||
|
||
using OpenUtau.Api; | ||
|
||
namespace OpenUtau.Core.DiffSinger | ||
{ | ||
[Phonemizer("DiffSinger Chinese Phonemizer", "DIFFS ZH", language: "ZH")] | ||
public class DiffSingerChinesePhonemizer : DiffSingerBasePhonemizer | ||
{ | ||
protected override string[] Romanize(IEnumerable<string> lyrics) { | ||
return BaseChinesePhonemizer.Romanize(lyrics); | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
using System.Collections.Generic; | ||
|
||
using OpenUtau.Api; | ||
|
||
namespace OpenUtau.Core.DiffSinger | ||
{ | ||
[Phonemizer("DiffSinger Phonemizer", "DIFFS")] | ||
public class DiffSingerPhonemizer : DiffSingerBasePhonemizer | ||
{ | ||
protected override string[] Romanize(IEnumerable<string> lyrics) { | ||
return BaseChinesePhonemizer.Romanize(lyrics); | ||
} | ||
} | ||
} |
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