|
|
|
@ -272,13 +272,13 @@
|
|
|
|
|
"resample = False #@param {type:\"boolean\"}\n",
|
|
|
|
|
"if resample:\n",
|
|
|
|
|
" !python resample.py --input_dir \"/content/dataset/wavs\" --output_dir \"/content/dataset/wavs_resampled\" --output_sr {sample_rate} --file_ext \"wav\"\n",
|
|
|
|
|
" !mv \"/content/dataset/wavs_resampled/*\" \"/content/dataset/wavs\"\n",
|
|
|
|
|
" !mv /content/dataset/wavs_resampled/* /content/dataset/wavs\n",
|
|
|
|
|
"#@markdown ---\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"!python -m piper_train.preprocess \\\n",
|
|
|
|
|
" --language {final_language} \\\n",
|
|
|
|
|
" --input-dir /content/dataset \\\n",
|
|
|
|
|
" --output-dir {output_dir} \\\n",
|
|
|
|
|
" --output-dir \"{output_dir}\" \\\n",
|
|
|
|
|
" --dataset-format {dataset_format} \\\n",
|
|
|
|
|
" --sample-rate {sample_rate} \\\n",
|
|
|
|
|
" {force_sp}"
|
|
|
|
|