Skip to content

Commit

Permalink
Update DiffSingerSinger.cs
Browse files Browse the repository at this point in the history
Add support for a custom vocoder per DiffSinger Database, as fine-tuning HifiGan for a specific model is becomming more common.
  • Loading branch information
spicytigermeat authored Nov 24, 2023
1 parent 01f1728 commit ca01343
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 ca01343

Please sign in to comment.