Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem in train #12

Open
SeyyedAliTorabi opened this issue Oct 13, 2023 · 1 comment
Open

problem in train #12

SeyyedAliTorabi opened this issue Oct 13, 2023 · 1 comment

Comments

@SeyyedAliTorabi
Copy link

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 ????

@karim23657
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants