This commit is contained in:
Tater Totterson
2025-09-27 15:26:43 -05:00
committed by GitHub
parent bdac2263a5
commit 763fe7409a

View File

@@ -115,7 +115,6 @@
"from pathlib import Path\n", "from pathlib import Path\n",
"from IPython.display import Audio, display\n", "from IPython.display import Audio, display\n",
"\n", "\n",
"TARGET_WORD = \"hey_tater\"\n",
"REPO_URL = \"https://github.com/rhasspy/piper-sample-generator\"\n", "REPO_URL = \"https://github.com/rhasspy/piper-sample-generator\"\n",
"REPO_DIR = Path.cwd() / \"piper-sample-generator\"\n", "REPO_DIR = Path.cwd() / \"piper-sample-generator\"\n",
"MODELS_DIR = REPO_DIR / \"models\"\n", "MODELS_DIR = REPO_DIR / \"models\"\n",
@@ -243,8 +242,8 @@
"cmd = [\n", "cmd = [\n",
" sys.executable,\n", " sys.executable,\n",
" str(REPO_DIR / \"generate_samples.py\"),\n", " str(REPO_DIR / \"generate_samples.py\"),\n",
" target_word,\n", " TARGET_WORD,\n",
" \"--model\", str(MODELS_DIR / MODEL_NAME), # important: specify generator .pt\n", " \"--model\", str(MODELS_DIR / MODEL_NAME),\n",
" \"--max-samples\", \"50000\",\n", " \"--max-samples\", \"50000\",\n",
" \"--batch-size\", \"100\",\n", " \"--batch-size\", \"100\",\n",
" \"--output-dir\", \"generated_samples\",\n", " \"--output-dir\", \"generated_samples\",\n",
@@ -792,13 +791,6 @@
"!$cmd" "!$cmd"
] ]
}, },
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,