forked from mirrors/nixpkgs
Merge pull request #125695 from mweinelt/tts
This commit is contained in:
commit
e3c74bd6e2
|
@ -203,4 +203,12 @@ with lib.maintainers; {
|
|||
];
|
||||
scope = "Group registration for Serokell employees who collectively maintain packages.";
|
||||
};
|
||||
|
||||
tts = {
|
||||
members = [
|
||||
hexa
|
||||
mic92
|
||||
];
|
||||
scope = "coqui-ai TTS (formerly Mozilla TTS) and leaf packages";
|
||||
};
|
||||
}
|
||||
|
|
29
pkgs/development/python-modules/anyascii/default.nix
Normal file
29
pkgs/development/python-modules/anyascii/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "anyascii";
|
||||
version = "0.2.0";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1b6jdd9nx15py0jqjdn154m6m491517sqlk57bbyj3x4xzywadkh";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Unicode to ASCII transliteration";
|
||||
homepage = "https://github.com/anyascii/anyascii";
|
||||
license = licenses.isc;
|
||||
maintainers = teams.tts.members;
|
||||
};
|
||||
}
|
|
@ -6,14 +6,14 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "coqpit";
|
||||
version = "0.0.6.6";
|
||||
version = "0.0.9";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "coqui-ai";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0wb5wf84i5h4ycm732kn4316v7schhm91s2rrklfw9sny5dqmdnh";
|
||||
sha256 = "1dh3bp7m9fjfrfrahblibrx91sagndkdi0325ail63kyvlhzbkma";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
|
@ -32,6 +32,6 @@ buildPythonPackage rec {
|
|||
'';
|
||||
homepage = "https://github.com/coqui-ai/coqpit";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hexa mic92 ];
|
||||
maintainers = teams.tts.members;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -28,5 +28,6 @@ buildPythonPackage rec {
|
|||
homepage = "https://github.com/jaraco/inflect";
|
||||
changelog = "https://github.com/jaraco/inflect/blob/v${version}/CHANGES.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = teams.tts.members;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -29,5 +29,6 @@ buildPythonPackage rec {
|
|||
description = "Chinese Words Segementation Utilities";
|
||||
homepage = "https://github.com/fxsjy/jieba";
|
||||
license = licenses.mit;
|
||||
maintainers = teams.tts.members;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,13 +6,13 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "pypinyin";
|
||||
version = "0.41.0";
|
||||
version = "0.42.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mozillazg";
|
||||
repo = "python-pinyin";
|
||||
rev = "v${version}";
|
||||
sha256 = "1s01dd5n6cgjg24dmji0abxkyvr1yi18lx4rpm9z54v0q3wkccg9";
|
||||
sha256 = "0i0ggizkgd809ylz74j1v5lfpyifz3wypj6f8l8fr5ad7a7r9s09";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
@ -33,6 +33,6 @@ buildPythonPackage rec {
|
|||
homepage = "https://github.com/mozillazg/python-pinyin";
|
||||
changelog = "https://github.com/mozillazg/python-pinyin/blob/master/CHANGELOG.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hexa mic92 ];
|
||||
maintainers = teams.tts.members;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -26,6 +26,6 @@ buildPythonPackage rec {
|
|||
description = "Pysbd (Python Sentence Boundary Disambiguation) is a rule-based sentence boundary detection that works out-of-the-box across many languages";
|
||||
homepage = "https://github.com/nipunsadvilkar/pySBD";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.mic92 ];
|
||||
maintainers = teams.tts.members;
|
||||
};
|
||||
}
|
||||
|
|
29
pkgs/development/python-modules/unidic-lite/default.nix
Normal file
29
pkgs/development/python-modules/unidic-lite/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "unidic-lite";
|
||||
version = "1.0.8";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0idj4yp0sl27ylr2wzkybbh0wj7c843lp7cljw5d1m7xv5r4b7fv";
|
||||
};
|
||||
|
||||
# no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"unidic_lite"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A small version of UniDic";
|
||||
homepage = "https://github.com/polm/unidic-lite";
|
||||
license = licenses.mit;
|
||||
maintainers = teams.tts.members;
|
||||
};
|
||||
}
|
|
@ -12,20 +12,20 @@
|
|||
#
|
||||
# If you upgrade from an old version you may have to delete old models from ~/.local/share/tts
|
||||
# Also note that your tts version might not support all available models so check:
|
||||
# https://github.com/coqui-ai/TTS/releases/tag/v0.0.14
|
||||
# https://github.com/coqui-ai/TTS/releases/tag/v0.0.15.1
|
||||
#
|
||||
# For now, for deployment check the systemd unit in the pull request:
|
||||
# https://github.com/NixOS/nixpkgs/pull/103851#issue-521121136
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "tts";
|
||||
version = "0.0.14";
|
||||
version = "0.0.15.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "coqui-ai";
|
||||
repo = "TTS";
|
||||
rev = "v${version}";
|
||||
sha256 = "0cl0ri90mx0y19fmqww73lp5nv6qkpc45rm4157i7p6q6llajdhp";
|
||||
sha256 = "0z6sbzspgmw5ja8r2zysyhdk4jzlv88a0ihkvxvvwxslkyncdb89";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
@ -41,6 +41,7 @@ python3Packages.buildPythonApplication rec {
|
|||
];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
anyascii
|
||||
coqpit
|
||||
flask
|
||||
gdown
|
||||
|
@ -48,6 +49,7 @@ python3Packages.buildPythonApplication rec {
|
|||
jieba
|
||||
librosa
|
||||
matplotlib
|
||||
mecab-python3
|
||||
numba
|
||||
pandas
|
||||
pypinyin
|
||||
|
@ -56,9 +58,10 @@ python3Packages.buildPythonApplication rec {
|
|||
scipy
|
||||
soundfile
|
||||
tensorboardx
|
||||
tensorflow
|
||||
tqdm
|
||||
umap-learn
|
||||
unidecode
|
||||
unidic-lite
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
|
@ -100,16 +103,15 @@ python3Packages.buildPythonApplication rec {
|
|||
|
||||
disabledTestPaths = [
|
||||
# requires tensorflow
|
||||
"tests/test_tacotron2_tf_model.py"
|
||||
"tests/vocoder_tests/test_vocoder_tf_pqmf.py"
|
||||
"tests/vocoder_tests/test_vocoder_tf_melgan_generator.py"
|
||||
"tests/tts_tests/test_tacotron2_tf_model.py"
|
||||
# RuntimeError: fft: ATen not compiled with MKL support
|
||||
"tests/vocoder_tests/test_fullband_melgan_train.py"
|
||||
"tests/vocoder_tests/test_hifigan_train.py"
|
||||
"tests/vocoder_tests/test_melgan_train.py"
|
||||
"tests/vocoder_tests/test_multiband_melgan_train.py"
|
||||
"tests/vocoder_tests/test_parallel_wavegan_train.py"
|
||||
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -465,6 +465,8 @@ in {
|
|||
inherit (pkgs) antlr4;
|
||||
};
|
||||
|
||||
anyascii = callPackage ../development/python-modules/anyascii { };
|
||||
|
||||
anyio = callPackage ../development/python-modules/anyio { };
|
||||
|
||||
anyjson = callPackage ../development/python-modules/anyjson { };
|
||||
|
@ -8790,6 +8792,8 @@ in {
|
|||
|
||||
unidecode = callPackage ../development/python-modules/unidecode { };
|
||||
|
||||
unidic-lite = callPackage ../development/python-modules/unidic-lite { };
|
||||
|
||||
unidiff = callPackage ../development/python-modules/unidiff { };
|
||||
|
||||
unifi = callPackage ../development/python-modules/unifi { };
|
||||
|
|
Loading…
Reference in a new issue