piper-tts: rename from larynx

and also the python package piper-train from larynx-train.
This commit is contained in:
Martin Weinelt 2023-06-09 22:01:20 +02:00
parent dd8a4a6eb8
commit 9c67abf20a
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
6 changed files with 25 additions and 25 deletions

View file

@ -1,6 +1,5 @@
{ lib { buildPythonPackage
, buildPythonPackage , piper-tts
, larynx
# build # build
, cython , cython
@ -15,10 +14,10 @@
, torch , torch
}: }:
buildPythonPackage rec { buildPythonPackage {
inherit (larynx) version src meta; inherit (piper-tts) version src meta;
pname = "larynx-train"; pname = "piper-train";
format = "setuptools"; format = "setuptools";
sourceRoot = "source/src/python"; sourceRoot = "source/src/python";
@ -35,13 +34,13 @@ buildPythonPackage rec {
''; '';
postBuild = '' postBuild = ''
make -C larynx_train/vits/monotonic_align make -C piper_train/vits/monotonic_align
''; '';
postInstall = '' postInstall = ''
export MONOTONIC_ALIGN=$out/${python.sitePackages}/larynx_train/vits/monotonic_align/monotonic_align export MONOTONIC_ALIGN=$out/${python.sitePackages}/piper_train/vits/monotonic_align/monotonic_align
mkdir -p $MONOTONIC_ALIGN mkdir -p $MONOTONIC_ALIGN
cp -v ./larynx_train/vits/monotonic_align/larynx_train/vits/monotonic_align/core.*.so $MONOTONIC_ALIGN/ cp -v ./piper_train/vits/monotonic_align/piper_train/vits/monotonic_align/core.*.so $MONOTONIC_ALIGN/
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -54,7 +53,7 @@ buildPythonPackage rec {
]; ];
pythonImportsCheck = [ pythonImportsCheck = [
"larynx_train" "piper_train"
]; ];
doCheck = false; # no tests doCheck = false; # no tests

View file

@ -6,11 +6,11 @@
, espeak-ng , espeak-ng
, onnxruntime , onnxruntime
, pcaudiolib , pcaudiolib
, larynx-train , piper-train
}: }:
let let
pname = "larynx"; pname = "piper";
version = "0.0.2"; version = "0.0.2";
in in
stdenv.mkDerivation { stdenv.mkDerivation {
@ -18,9 +18,9 @@ stdenv.mkDerivation {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rhasspy"; owner = "rhasspy";
repo = "larynx2"; repo = "piper";
rev = "refs/tags/v${version}"; rev = "70afec58bc131010c8993c154ff02a78d1e7b8b0";
hash = "sha256-6SZ1T2A1DyVmBH2pJBHJdsnniRuLrI/dthRTRRyVSQQ="; hash = "sha256-zTW7RGcV8Hh7G6Braf27F/8s7nNjAqagp7tmrKO10BY=";
}; };
sourceRoot = "source/src/cpp"; sourceRoot = "source/src/cpp";
@ -45,19 +45,19 @@ stdenv.mkDerivation {
runHook preInstall runHook preInstall
mkdir -p $out/bin mkdir -p $out/bin
install -m 0755 larynx $out/bin install -m 0755 piper $out/bin
runHook postInstall runHook postInstall
''; '';
passthru.tests = { passthru.tests = {
inherit larynx-train; inherit piper-train;
}; };
meta = with lib; { meta = with lib; {
changelog = "https://github.com/rhasspy/larynx2/releases/tag/v${version}"; changelog = "https://github.com/rhasspy/piper/releases/tag/v${version}";
description = "A fast, local neural text to speech system"; description = "A fast, local neural text to speech system";
homepage = "https://github.com/rhasspy/larynx2"; homepage = "https://github.com/rhasspy/piper";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ hexa ]; maintainers = with maintainers; [ hexa ];
}; };

View file

@ -832,6 +832,7 @@ mapAliases ({
### L ### ### L ###
larynx = piper-tts; # Added 2023-05-09
lastfmsubmitd = throw "lastfmsubmitd was removed from nixpkgs as the project is abandoned"; # Added 2022-01-01 lastfmsubmitd = throw "lastfmsubmitd was removed from nixpkgs as the project is abandoned"; # Added 2022-01-01
latinmodern-math = lmmath; latinmodern-math = lmmath;
letsencrypt = throw "'letsencrypt' has been renamed to/replaced by 'certbot'"; # Converted to throw 2022-02-22 letsencrypt = throw "'letsencrypt' has been renamed to/replaced by 'certbot'"; # Converted to throw 2022-02-22

View file

@ -9685,10 +9685,6 @@ with pkgs;
jump = callPackage ../tools/system/jump { }; jump = callPackage ../tools/system/jump { };
larynx = callPackage ../tools/audio/larynx { };
larynx-train = with python3Packages; toPythonApplication larynx-train;
latex2html = callPackage ../tools/misc/latex2html { }; latex2html = callPackage ../tools/misc/latex2html { };
lazycli = callPackage ../tools/misc/lazycli { }; lazycli = callPackage ../tools/misc/lazycli { };
@ -11316,6 +11312,9 @@ with pkgs;
pim6sd = callPackage ../servers/pim6sd { }; pim6sd = callPackage ../servers/pim6sd { };
piper-train = with python3Packages; toPythonApplication piper-train;
piper-tts = callPackage ../tools/audio/piper { };
phosh = callPackage ../applications/window-managers/phosh { }; phosh = callPackage ../applications/window-managers/phosh { };
phosh-mobile-settings = callPackage ../applications/window-managers/phosh/phosh-mobile-settings.nix { }; phosh-mobile-settings = callPackage ../applications/window-managers/phosh/phosh-mobile-settings.nix { };

View file

@ -158,6 +158,7 @@ mapAliases ({
jupyter_server = jupyter-server; # added 2023-01-05 jupyter_server = jupyter-server; # added 2023-01-05
Kajiki = kajiki; # added 2023-02-19 Kajiki = kajiki; # added 2023-02-19
Keras = keras; # added 2021-11-25 Keras = keras; # added 2021-11-25
larynx-train = piper-train; # added 2023-06-09
ldap = python-ldap; # added 2022-09-16 ldap = python-ldap; # added 2022-09-16
lammps-cython = throw "lammps-cython no longer builds and is unmaintained"; # added 2021-07-04 lammps-cython = throw "lammps-cython no longer builds and is unmaintained"; # added 2021-07-04
logilab_astng = throw "logilab-astng has not been released since 2013 and is unmaintained"; # added 2022-11-29 logilab_astng = throw "logilab-astng has not been released since 2013 and is unmaintained"; # added 2022-11-29

View file

@ -5536,8 +5536,6 @@ self: super: with self; {
lark = callPackage ../development/python-modules/lark { }; lark = callPackage ../development/python-modules/lark { };
larynx-train = callPackage ../development/python-modules/larynx-train { };
laspy = callPackage ../development/python-modules/laspy { }; laspy = callPackage ../development/python-modules/laspy { };
laszip = callPackage ../development/python-modules/laszip { }; laszip = callPackage ../development/python-modules/laszip { };
@ -7643,6 +7641,8 @@ self: super: with self; {
pipenv-poetry-migrate = callPackage ../development/python-modules/pipenv-poetry-migrate { }; pipenv-poetry-migrate = callPackage ../development/python-modules/pipenv-poetry-migrate { };
piper-train = callPackage ../development/python-modules/piper-train { };
pip-api = callPackage ../development/python-modules/pip-api { }; pip-api = callPackage ../development/python-modules/pip-api { };
pip-tools = callPackage ../development/python-modules/pip-tools { }; pip-tools = callPackage ../development/python-modules/pip-tools { };