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

[Bug] tts-server unable to start with xtts_v2 model #99

Open
rohitkrishna094 opened this issue Oct 7, 2024 · 1 comment
Open

[Bug] tts-server unable to start with xtts_v2 model #99

rohitkrishna094 opened this issue Oct 7, 2024 · 1 comment
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers

Comments

@rohitkrishna094
Copy link

rohitkrishna094 commented Oct 7, 2024

Describe the bug

When I run tts-server --model_name tts_models/multilingual/multi-dataset/xtts_v2, I am getting the below error:

tts_models/multilingual/multi-dataset/xtts_v2 is already downloaded.
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "<my-path>\my-env\Scripts\tts-server.exe\__main__.py", line 4, in <module>
  File "<my-path>\my-env\Lib\site-packages\TTS\server\server.py", line 110, in <module>
    synthesizer = Synthesizer(
                  ^^^^^^^^^^^^
  File "<my-path>\my-env\Lib\site-packages\TTS\utils\synthesizer.py", line 96, in __init__
    self._load_tts(tts_checkpoint, tts_config_path, use_cuda)
  File "<my-path>\my-env\Lib\site-packages\TTS\utils\synthesizer.py", line 186, in _load_tts
    self.tts_config = load_config(tts_config_path)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<my-path>\my-env\Lib\site-packages\TTS\config\__init__.py", line 85, in load_config
    ext = os.path.splitext(config_path)[1]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen ntpath>", line 258, in splitext
TypeError: expected str, bytes or os.PathLike object, not NoneType

To Reproduce

Just run tts-server --model_name tts_models/multilingual/multi-dataset/xtts_v2

Expected behavior

To start the tts-server without any errors

Logs

tts_models/multilingual/multi-dataset/xtts_v2 is already downloaded.
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "<my-path>\my-env\Scripts\tts-server.exe\__main__.py", line 4, in <module>
  File "<my-path>\my-env\Lib\site-packages\TTS\server\server.py", line 110, in <module>
    synthesizer = Synthesizer(
                  ^^^^^^^^^^^^
  File "<my-path>\my-env\Lib\site-packages\TTS\utils\synthesizer.py", line 96, in __init__
    self._load_tts(tts_checkpoint, tts_config_path, use_cuda)
  File "<my-path>\my-env\Lib\site-packages\TTS\utils\synthesizer.py", line 186, in _load_tts
    self.tts_config = load_config(tts_config_path)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<my-path>\my-env\Lib\site-packages\TTS\config\__init__.py", line 85, in load_config
    ext = os.path.splitext(config_path)[1]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen ntpath>", line 258, in splitext
TypeError: expected str, bytes or os.PathLike object, not NoneType

Environment

{
    "CUDA": {
        "GPU": [],
        "available": false,
        "version": null
    },
    "Packages": {
        "PyTorch_debug": false,
        "PyTorch_version": "2.4.1+cpu",
        "TTS": "0.24.2",
        "numpy": "1.26.4"
    },
    "System": {
        "OS": "Windows",
        "architecture": [
            "64bit",
            "WindowsPE"
        ],
        "processor": "Intel64 Family 6 Model 94 Stepping 3, GenuineIntel",
        "python": "3.12.4",
        "version": "10.0.19045"
    }
}

Additional context

No response

@rohitkrishna094 rohitkrishna094 added the bug Something isn't working label Oct 7, 2024
@eginhard eginhard added the good first issue Good for newcomers label Oct 7, 2024
@eginhard
Copy link
Member

eginhard commented Oct 7, 2024

Yes, the server currently only supports a limited number of models. I'd merge a PR adding support for XTTS. Some previous discussion and workarounds are here: coqui-ai#3140

@eginhard eginhard added the enhancement New feature or request label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants