diff --git a/maintainers/team-list.nix b/maintainers/team-list.nix index 3e6843f0e573..e14b5b3e9b32 100644 --- a/maintainers/team-list.nix +++ b/maintainers/team-list.nix @@ -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"; + }; } diff --git a/pkgs/development/python-modules/anyascii/default.nix b/pkgs/development/python-modules/anyascii/default.nix new file mode 100644 index 000000000000..8e8b1c920733 --- /dev/null +++ b/pkgs/development/python-modules/anyascii/default.nix @@ -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; + }; +} diff --git a/pkgs/development/python-modules/coqpit/default.nix b/pkgs/development/python-modules/coqpit/default.nix index c4df114e24df..96e18d76ba74 100644 --- a/pkgs/development/python-modules/coqpit/default.nix +++ b/pkgs/development/python-modules/coqpit/default.nix @@ -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; }; } diff --git a/pkgs/development/python-modules/inflect/default.nix b/pkgs/development/python-modules/inflect/default.nix index f81ceabd27e1..9081a30ac6be 100644 --- a/pkgs/development/python-modules/inflect/default.nix +++ b/pkgs/development/python-modules/inflect/default.nix @@ -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; }; } diff --git a/pkgs/development/python-modules/jieba/default.nix b/pkgs/development/python-modules/jieba/default.nix index b515cd92b23b..8b7146ebef93 100644 --- a/pkgs/development/python-modules/jieba/default.nix +++ b/pkgs/development/python-modules/jieba/default.nix @@ -29,5 +29,6 @@ buildPythonPackage rec { description = "Chinese Words Segementation Utilities"; homepage = "https://github.com/fxsjy/jieba"; license = licenses.mit; + maintainers = teams.tts.members; }; } diff --git a/pkgs/development/python-modules/pypinyin/default.nix b/pkgs/development/python-modules/pypinyin/default.nix index 9615e07d7c74..edefbf16ca2d 100644 --- a/pkgs/development/python-modules/pypinyin/default.nix +++ b/pkgs/development/python-modules/pypinyin/default.nix @@ -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; }; } diff --git a/pkgs/development/python-modules/pysbd/default.nix b/pkgs/development/python-modules/pysbd/default.nix index e1e0578c83b8..f25283dbbbcc 100644 --- a/pkgs/development/python-modules/pysbd/default.nix +++ b/pkgs/development/python-modules/pysbd/default.nix @@ -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; }; } diff --git a/pkgs/development/python-modules/unidic-lite/default.nix b/pkgs/development/python-modules/unidic-lite/default.nix new file mode 100644 index 000000000000..eec9c7022a0d --- /dev/null +++ b/pkgs/development/python-modules/unidic-lite/default.nix @@ -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; + }; +} diff --git a/pkgs/tools/audio/tts/default.nix b/pkgs/tools/audio/tts/default.nix index 51976a2d6a11..0e57e19a2883 100644 --- a/pkgs/tools/audio/tts/default.nix +++ b/pkgs/tools/audio/tts/default.nix @@ -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; { diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c83823156474..8a5e0e98f2a5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };