Skip to content

Commit

Permalink
Merge pull request #2161 from coqui-ai/tutorials
Browse files Browse the repository at this point in the history
fixed tutorial 2 incompatibility with new dev
  • Loading branch information
erogol authored Nov 21, 2022
2 parents bc6120c + be0ba93 commit c50d89f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions notebooks/Tutorial_2_train_your_first_TTS_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": null,
"id": "b3cb0191-b8fc-4158-bd26-8423c2a8ba66",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -138,13 +138,13 @@
},
{
"cell_type": "code",
"execution_count": 31,
"execution_count": null,
"id": "76cd3ab5-6387-45f1-b488-24734cc1beb5",
"metadata": {},
"outputs": [],
"source": [
"dataset_config = BaseDatasetConfig(\n",
" name=\"ljspeech\", meta_file_train=\"metadata.csv\", path=os.path.join(output_path, \"LJSpeech-1.1/\")\n",
" formatter=\"ljspeech\", meta_file_train=\"metadata.csv\", path=os.path.join(output_path, \"LJSpeech-1.1/\")\n",
")"
]
},
Expand Down Expand Up @@ -215,7 +215,9 @@
"outputs": [],
"source": [
"from TTS.utils.audio import AudioProcessor\n",
"ap = AudioProcessor.init_from_config(config)"
"ap = AudioProcessor.init_from_config(config)\n",
"# Modify sample rate if for a custom audio dataset:\n",
"# ap.sample_rate = 22050\n"
]
},
{
Expand Down

0 comments on commit c50d89f

Please sign in to comment.