From d5e8d187a10fd30d4eb155654311c8ca88c42abe Mon Sep 17 00:00:00 2001 From: MasterPhooey Date: Sat, 17 Jan 2026 23:01:50 -0600 Subject: [PATCH] personal samples --- cli/wake_word_sample_trainer | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/cli/wake_word_sample_trainer b/cli/wake_word_sample_trainer index f05e3c1..433d044 100644 --- a/cli/wake_word_sample_trainer +++ b/cli/wake_word_sample_trainer @@ -152,8 +152,18 @@ sed -i \ # Insert/remove personal block if [ "${HAS_PERSONAL}" = "true" ]; then - # Insert directly after the wakeword feature block (matches your notebook: insert(1, ...)) - perl -0777 -i -pe 's/__PERSONAL_FEATURE_MARKER__/\n- features_dir: '"${PERSONAL_FEATURES_DIR}"'\n penalty_weight: 1.0\n sampling_weight: 3.0\n truncation_strategy: truncate_start\n truth: true\n type: mmap\n/g' "${YAML_PATH}" + # Insert directly after the wakeword feature block (matches notebook: insert(1, ...)) + personal_block="$(cat <