Skip to content

Commit

Permalink
Merge pull request #942 from spicytigermeat/patch-1
Browse files Browse the repository at this point in the history
Add support for a custom vocoder for DiffSinger singer
  • Loading branch information
stakira authored Nov 25, 2023
2 parents 6912603 + ca01343 commit 910a7a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OpenUtau.Core/DiffSinger/DiffSingerSinger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ public InferenceSession getAcousticSession() {

public DsVocoder getVocoder() {
if(vocoder is null) {
if(File.Exists(Path.Join(Location, "dsvocoder", "vocoder.yaml"))) {
vocoder = new DsVocoder(Path.Join(Location, "dsvocoder"));
return vocoder;
}
vocoder = new DsVocoder(dsConfig.vocoder);
}
return vocoder;
Expand Down

0 comments on commit 910a7a2

Please sign in to comment.