Skip to content

Help with dependencies #93

@Lonmine

Description

@Lonmine

What are the dependencies that i need to install for this? Should i just try installing another TTS?

(venv) C:\Users\Zeth\SillyTavern-Launcher\SillyTavern\xtts>pip install xtts-api-server
Collecting xtts-api-server
  Downloading xtts_api_server-0.9.0-py3-none-any.whl.metadata (10 kB)
Collecting coqui-tts==0.24.1 (from coqui-tts[languages]==0.24.1->xtts-api-server)
  Downloading coqui_tts-0.24.1.tar.gz (1.4 MB)
     ---------------------------------------- 1.4/1.4 MB 3.4 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting cutlet (from xtts-api-server)
  Downloading cutlet-0.5.0-py3-none-any.whl.metadata (3.9 kB)
Collecting fastapi>=0.104.1 (from xtts-api-server)
...
cutting out the excess stuff
...
Downloading yarl-1.18.3-cp312-cp312-win_amd64.whl (90 kB)
Downloading pycparser-2.22-py3-none-any.whl (117 kB)
Downloading pytz-2025.2-py2.py3-none-any.whl (509 kB)
Downloading tzlocal-5.3.1-py3-none-any.whl (18 kB)
Downloading tzdata-2025.2-py2.py3-none-any.whl (347 kB)
Building wheels for collected packages: coqui-tts, gruut, uuid, encodec, unidic-lite, jaconv, docopt, gruut-ipa, gruut_lang_de, gruut_lang_en, gruut_lang_es, gruut_lang_fr, bnnumerizer, jieba
  Building wheel for coqui-tts (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for coqui-tts (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [458 lines of output]
      C:\Users\Zeth\AppData\Local\Temp\pip-build-env-rahs8b6d\overlay\Lib\site-packages\setuptools\config\_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
      !!

              ********************************************************************************
              Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

              By 2026-Feb-18, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.

              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

      !!
        corresp(dist, value, root_dir)
      C:\Users\Zeth\AppData\Local\Temp\pip-build-env-rahs8b6d\overlay\Lib\site-packages\setuptools\config\_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!

              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:

              License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)

              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

      !!
        dist._finalize_license_expression()
      C:\Users\Zeth\AppData\Local\Temp\pip-build-env-rahs8b6d\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!

              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:

              License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)

              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

      !!
        self._finalize_license_expression()
      running bdist_wheel
      running build
      running build_py
      creating build\lib.win-amd64-cpython-312\TTS
      copying TTS\api.py -> build\lib.win-amd64-cpython-312\TTS
      copying TTS\model.py -> build\lib.win-amd64-cpython-312\TTS
      copying TTS\__init__.py -> build\lib.win-amd64-cpython-312\TTS
      creating build\lib.win-amd64-cpython-312\TTS\bin
      copying TTS\bin\collect_env_info.py -> build\lib.win-amd64-cpython-312\TTS\bin
      copying TTS\bin\compute_attention_masks.py -> build\lib.win-amd64-cpython-312\TTS\bin
      copying TTS\bin\compute_embeddings.py -> build\lib.win-amd64-cpython-312\TTS\bin
      copying TTS\bin\compute_statistics.py -> build\lib.win-amd64-cpython-312\TTS\bin
      copying TTS\bin\eval_encoder.py -> build\lib.win-amd64-cpython-312\TTS\bin
      copying TTS\bin\extract_tts_spectrograms.py -> build\lib.win-amd64-cpython-312\TTS\bin
 ...
cutting excess again...
...
      writing top-level names to coqui_tts.egg-info\top_level.txt
      reading manifest file 'coqui_tts.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      adding license file 'LICENSE.txt'
      writing manifest file 'coqui_tts.egg-info\SOURCES.txt'
      C:\Users\Zeth\AppData\Local\Temp\pip-build-env-rahs8b6d\overlay\Lib\site-packages\setuptools\command\build_py.py:212: _Warning: Package 'TTS.tts.utils.monotonic_align' is absent from the `packages` configuration.
      !!

              ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'TTS.tts.utils.monotonic_align' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.

              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'TTS.tts.utils.monotonic_align' is explicitly added
              to the `packages` configuration field.

              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).

              You can read more about "package discovery" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

              If you don't want 'TTS.tts.utils.monotonic_align' to be distributed and are
              already explicitly excluding 'TTS.tts.utils.monotonic_align' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.

              You can read more about "package data files" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************

      !!
        check.warn(importable)
      copying TTS\.models.json -> build\lib.win-amd64-cpython-312\TTS
     
      building 'TTS.tts.utils.monotonic_align.core' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for coqui-tts
  Building wheel for gruut (pyproject.toml) ... done
  Created wheel for gruut: filename=gruut-2.2.3-py3-none-any.whl size=75948 sha256=48351bca91cf87d6db5b0eb383acbcb75ca5cfcfdd2a7667563208a7698c5065
...
cutting  again
...
  Created wheel for jieba: filename=jieba-0.42.1-py3-none-any.whl size=19314527 sha256=71e67177e7733ef9c0360865cd7f0134da3cfa89fbfe7dc6fcfa4a7d6ca3b558
  Stored in directory: c:\users\zeth\appdata\local\pip\cache\wheels\08\a1\a3\5c8ac52cc2f5782ffffc34c95c57c8e5ecb3063dc69541ee7c
Successfully built gruut uuid encodec unidic-lite jaconv docopt gruut-ipa gruut_lang_de gruut_lang_en gruut_lang_es gruut_lang_fr bnnumerizer jieba
Failed to build coqui-tts

[notice] A new release of pip is available: 24.3.1 -> 25.0.1
[notice] To update, run: python.exe -m pip install --upgrade pip
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (coqui-tts)

(venv) C:\Users\Zeth\SillyTavern-Launcher\SillyTavern\xtts>pip install xtts-api-server`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions