mirror of
https://github.com/wassname/TTS.git
synced 2026-09-25 13:20:28 +08:00
* Use packaging.version for version comparisons The distutils package is deprecated¹ and relies on PEP 386² version comparisons, which have been superseded by PEP 440³ which is implemented through the packaging module. With more recent distutils versions, provided through setuptools vendoring, we are seeing the following exception during version comparisons: > TypeError: '<' not supported between instances of 'str' and 'int' This is fixed by this migration. [1] https://docs.python.org/3/library/distutils.html [2] https://peps.python.org/pep-0386/ [3] https://peps.python.org/pep-0440/ * Improve espeak version detection robustness On many modern systems espeak is just a symlink to espeak-ng. In that case looking for the 3rd word in the version output will break the version comparison, when it finds `text-to-speech:`, instead of a proper version. This will not break during runtime, where espeak-ng would be prioritized, but the phonemizer and tokenizer tests force the backend to `espeak`, which exhibits this breakage. This improves the version detection by simply looking for the version after the "text-to-speech:" token. * Replace distuils.copy_tree with shutil.copytree The distutils module is deprecated and slated for removal in Python 3.12. Its usage should be replaced, in this case by a compatible method from shutil.
42 lines
668 B
Plaintext
42 lines
668 B
Plaintext
# core deps
|
|
numpy==1.21.6;python_version<"3.10"
|
|
numpy==1.22.4;python_version=="3.10"
|
|
cython==0.29.28
|
|
scipy>=1.4.0
|
|
torch>=1.7
|
|
torchaudio
|
|
soundfile
|
|
librosa==0.8.0
|
|
numba==0.55.1;python_version<"3.10"
|
|
numba==0.55.2;python_version=="3.10"
|
|
inflect==5.6.0
|
|
tqdm
|
|
anyascii
|
|
pyyaml
|
|
fsspec>=2021.04.0
|
|
packaging
|
|
# deps for examples
|
|
flask
|
|
# deps for inference
|
|
pysbd
|
|
# deps for notebooks
|
|
umap-learn==0.5.1
|
|
pandas
|
|
# deps for training
|
|
matplotlib
|
|
# coqui stack
|
|
trainer==0.0.20
|
|
# config management
|
|
coqpit>=0.0.16
|
|
# chinese g2p deps
|
|
jieba
|
|
pypinyin
|
|
# japanese g2p deps
|
|
mecab-python3==1.0.5
|
|
unidic-lite==1.0.8
|
|
# gruut+supported langs
|
|
gruut[de]==2.2.3
|
|
# deps for korean
|
|
jamo
|
|
nltk
|
|
g2pkk>=0.1.1 |