Skip to content

[Bug] Invalid JSON in /tts_models--en--vctk--vits/config.json #4341

@followedmefully

Description

@followedmefully

Describe the bug

In file: "C:\Users\UserName\AppData\Local\tts\tts_models--en--vctk--vits\config.json" There is "max_audio_len": Infinity, on line 92 and "max_text_len": Infinity, on line 94. It produces an error saying Valued expected json(516). Replacing Infinity with null or a large number seems to fix the error.

Image

To Reproduce

I was cloning a voice using the model tts_models/en/vctk/vits and I found the error when I went into the config file. It seems to be universal if using model en/vctk/vits

Expected behavior

When running it doesn't spit out any errors. It is only an error in the editor. It says Value expected json(516)

Logs

Environment

TTS Version: 0.22.0
PyTorch Version: 2.5.1+cu121
Python version: 3.10.11
OS: Windows
I installed PyTorch using pip

Additional context

Dependencies I used in my python script:
os, json, subprocess, shutil, ModelManager.
Also copied the config file to the folder I have my python script:
new_config_path = os.path.abspath("peppa_training_config.json")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on but feel free to help.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions