summaryrefslogtreecommitdiff
path: root/makima/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'makima/src/main.rs')
-rw-r--r--makima/src/main.rs14
1 files changed, 1 insertions, 13 deletions
diff --git a/makima/src/main.rs b/makima/src/main.rs
index 2348b23..1d87106 100644
--- a/makima/src/main.rs
+++ b/makima/src/main.rs
@@ -7,21 +7,9 @@ pub mod tts;
fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("Loading ChatterboxTTS...");
- let mut tts = ChatterboxTTS::from_pretrained(None)?;
+ let tts = ChatterboxTTS::from_pretrained(None)?;
println!("Model loaded successfully!");
- // // Voice cloning using existing audio file
- // println!("Generating TTS with voice cloning...");
- // let audio = tts.generate_tts_with_voice(
- // "Hello, this is a test of the voice cloning system.",
- // Path::new("audio.wav")
- // )?;
- //
- // println!("Generated {} samples", audio.len());
- // save_wav(&audio, Path::new("output.wav"))?;
- // println!("Saved to output.wav");
-
-
// Load reference audio from mp3
println!("Loading reference audio...");
let reference = audio::to_16k_mono_from_path(Path::new("audio.mp3"))?;