From e2c4c8488a8b2cda8efbea1a3a301a3415cfa6a0 Mon Sep 17 00:00:00 2001 From: tuna2134 Date: Wed, 11 Sep 2024 14:19:49 +0000 Subject: [PATCH] fix --- sbv2_core/src/tts.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sbv2_core/src/tts.rs b/sbv2_core/src/tts.rs index d185e41..1b012e8 100644 --- a/sbv2_core/src/tts.rs +++ b/sbv2_core/src/tts.rs @@ -55,6 +55,7 @@ impl TTSModelHolder { pub fn models(&self) -> Vec { self.models.iter().map(|m| m.ident.to_string()).collect() } + pub fn load_sbv2file, P: AsRef<[u8]>>( &mut self, ident: I, @@ -83,6 +84,7 @@ impl TTSModelHolder { self.load(ident, style_vectors.unwrap(), vits2.unwrap())?; Ok(()) } + pub fn load, P: AsRef<[u8]>>( &mut self, ident: I,