Persian-tts-coqui icon indicating copy to clipboard operation
Persian-tts-coqui copied to clipboard

problem in train

Open SeyyedAliTorabi opened this issue 8 months ago • 1 comments

hi , i have a error when i ran the last line of https://github.com/karim23657/Persian-tts-coqui/blob/main/recepies/glowtts/01-glowtts-train.ipynb

and it is : AssertionError: 24000 vs 22050

During handling of the above exception, another exception occurred:

SystemExit Traceback (most recent call last) [... skipping hidden 1 frame]

SystemExit: 1

During handling of the above exception, another exception occurred:

TypeError Traceback (most recent call last) [... skipping hidden 1 frame]

/usr/local/lib/python3.10/dist-packages/IPython/core/ultratb.py in find_recursion(etype, value, records) 380 # first frame (from in to out) that looks different. 381 if not is_recursion_error(etype, value, records): --> 382 return len(records), 0 383 384 # Select filename, lineno, func_name to track frames with

TypeError: object of type 'NoneType' has no len()

how can i fix that ????

SeyyedAliTorabi avatar Oct 13 '23 09:10 SeyyedAliTorabi

@SeyyedAliTorabi It seems your dataset has different sample rate from what you have configured in audio_config :

audio_config = BaseAudioConfig(
    sample_rate=24000,  // change this based on your dataset, else set resample=True
    do_trim_silence=True,
    resample=False
    
)

so if you want to finetune it's better to resample all your dataset using https://github.com/coqui-ai/TTS/blob/dev/TTS/bin/resample.py as explained here , or set resample=True in audio_config .

Notify me if your issue solved.

karim23657 avatar Oct 28 '23 13:10 karim23657