From ca01343c8f87076293325897c519d9d5158721eb Mon Sep 17 00:00:00 2001 From: Tyler <103609620+spicytigermeat@users.noreply.github.com> Date: Thu, 23 Nov 2023 18:28:28 -0600 Subject: [PATCH] Update DiffSingerSinger.cs Add support for a custom vocoder per DiffSinger Database, as fine-tuning HifiGan for a specific model is becomming more common. --- OpenUtau.Core/DiffSinger/DiffSingerSinger.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenUtau.Core/DiffSinger/DiffSingerSinger.cs b/OpenUtau.Core/DiffSinger/DiffSingerSinger.cs index bb47ad6ed..62379ae16 100644 --- a/OpenUtau.Core/DiffSinger/DiffSingerSinger.cs +++ b/OpenUtau.Core/DiffSinger/DiffSingerSinger.cs @@ -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;