Merge pull request #2161 from coqui-ai/tutorials

fixed tutorial 2 incompatibility with new dev
This commit is contained in:
Eren Gölge 2022-11-21 19:08:39 +01:00 committed by GitHub
commit c50d89fcf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -107,7 +107,7 @@
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": null,
"id": "b3cb0191-b8fc-4158-bd26-8423c2a8ba66",
"metadata": {},
"outputs": [],
@ -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",
")"
]
},
@ -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"
]
},
{