From ada22327d32bf3bd3ce913bbfc28e7ba4bd81a68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81lvarez?= Date: Thu, 9 Jun 2022 17:00:52 +0200 Subject: [PATCH] v0.15.0: update rustpotter --- Cargo.lock | 6 +++--- Cargo.toml | 4 ++-- src/cli/spot.rs | 13 ------------- 3 files changed, 5 insertions(+), 18 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 678e3e6..d3a7414 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -427,9 +427,9 @@ dependencies = [ [[package]] name = "rustpotter" -version = "0.14.4" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c005672ce971cb10ac91abab62db4bde27154cc6b7ed2de93cab472fc7f7b364" +checksum = "a9ffea90f28d614196a430c702cb451f981bdab327896f8fc4694b3dcb08a6e3" dependencies = [ "hound", "log", @@ -443,7 +443,7 @@ dependencies = [ [[package]] name = "rustpotter-cli" -version = "0.14.4" +version = "0.15.0" dependencies = [ "clap", "ctrlc", diff --git a/Cargo.toml b/Cargo.toml index 42b397d..9db47b9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rustpotter-cli" -version = "0.14.4" +version = "0.15.0" edition = "2021" license = "Apache-2.0" description = "CLI for Rustpotter, an open source wake word spotter forged in rust" @@ -8,7 +8,7 @@ authors = ["Miguel Álvarez Díez "] repository = "https://github.com/GiviMAD/rustpotter" [dependencies] -rustpotter = { version = "0.14.4", features = ["log", "vad"] } +rustpotter = { version = "0.15.0", features = ["log", "vad"] } log = "0.4.6" pv_recorder = "1.0.2" ctrlc = "3.2.2" diff --git a/src/cli/spot.rs b/src/cli/spot.rs index a15ff59..a144304 100644 --- a/src/cli/spot.rs +++ b/src/cli/spot.rs @@ -26,9 +26,6 @@ pub struct SpotCommand { /// Enables eager mode eager_mode: bool, #[clap(long)] - /// Enables training mode, the word will be persisted on the current directory - training_mode: bool, - #[clap(long)] /// Unless enabled the comparison against multiple wakewords run in separate threads, not applies when single wakeword single_thread: bool, #[clap(short = 'n', long, possible_values = ["easiest", "easy", "normal", "hard", "hardest"])] @@ -76,7 +73,6 @@ pub fn spot(command: SpotCommand) -> Result<(), String> { .set_threshold(command.threshold) .set_sample_rate(16000) .set_eager_mode(command.eager_mode) - .set_eager_mode(command.training_mode) .set_single_thread(command.single_thread) .build(); let mut wakeword_names: Vec = Vec::new(); @@ -121,15 +117,6 @@ pub fn spot(command: SpotCommand) -> Result<(), String> { } } println!("Stopped by user request"); - if command.training_mode { - println!("Generating trained wakeword files..."); - for name in wakeword_names { - word_detector.generate_trained_wakeword_model_file( - name.clone(), - name.replace(" ", "_") + "_trained.rpw", - )?; - } - } #[cfg(all(feature = "dist", not(target_os = "windows")))] lib_temp_path.close().expect("Unable to remove temp file"); Ok(())