9 python.pkgs.buildPythonPackage {
10 inherit (piper-tts) version src;
12 pname = "piper-train";
13 format = "setuptools";
15 sourceRoot = "${piper-tts.src.name}/src/python";
17 nativeBuildInputs = with python.pkgs; [
22 make -C piper_train/vits/monotonic_align
26 export MONOTONIC_ALIGN=$out/${python.sitePackages}/piper_train/vits/monotonic_align/monotonic_align
27 mkdir -p $MONOTONIC_ALIGN
28 cp -v ./piper_train/vits/monotonic_align/piper_train/vits/monotonic_align/core.*.so $MONOTONIC_ALIGN/
31 propagatedBuildInputs = with python.pkgs; [
41 pythonImportsCheck = [
45 doCheck = false; # no tests
47 meta = piper-tts.meta // {
48 # requires torch<2, pytorch-lightning~=1.7